Contract 0xdce3b2264b0f271615939d141f4f22bc0b71f81c

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf4aa2d0397354f9f79702c33f1e6731e60f5fb8c224fc1d62f879e015d759f57Deposit148178532022-05-17 14:43:5620 mins ago0xfda84edd5121aefbb4a8c6fa9e1044662fa20b1f IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.003213356437 27.040033305
0xc60d80c0ba3657e6cb241b3f3a6fd50e7a1699724eeaf2ffffdf59ed182bbda0Withdraw148176742022-05-17 14:38:0626 mins ago0x74f3acb558017f2987e17d27b1cd101100e33095 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002530556868 26.034
0x4a1108a1aa8fc4822e4b5219fb802d927b74ab85db9df4e0003416bc673fd837Withdraw148176602022-05-17 14:37:3826 mins ago0x74f3acb558017f2987e17d27b1cd101100e33095 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002456285 26.5
0x4044d99867b382c06d94b5c66ae6423356643586c2f5f273e6e426bd7a26d7c0Deposit148164322022-05-17 13:56:291 hr 8 mins ago0x06e32fac336b56b660246b8a0cf8ae5d41243795 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0031482265 26.5
0x926e34c2448f7f34dc38ec434da2391578b54f323d0b9e55fec582f999819212Withdraw148151252022-05-17 13:13:031 hr 51 mins ago0xd6d71c34f4ac565128381995c6356989dbefef0a IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002019989 26.5
0x1cf11a25e76c70df572046c9b8b0509ab8c27f357a610c89028c828e593e9086Withdraw148151152022-05-17 13:12:441 hr 51 mins ago0xd6d71c34f4ac565128381995c6356989dbefef0a IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.003060379 26.5
0xab835ecea8097492faa27bef1f36370940106be151435f97b0cb0f2e34e838a1Withdraw148126322022-05-17 11:49:533 hrs 14 mins ago0xe1a63b5b37c0d7eaa76e0e57ef1f39c0a646f5a7 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002909435 26.5
0x6d8105a63099d945d3574b772f6dea471eb63b685cd32153a9516bed91cc07c0Deposit148098202022-05-17 10:15:464 hrs 48 mins ago0x1eda621bc6fefb6a1d83d025d373d510df2b42b0 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0028134255 26.5
0xaa8e162adce66cee8bf5593a4b8927c115f93e87fcd5bafb1eb62a589389e1ecWithdraw148097222022-05-17 10:12:294 hrs 52 mins ago0x1eda621bc6fefb6a1d83d025d373d510df2b42b0 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002909435 26.5
0xeaada2f589a058821e56c44fba094779b63fccd29dc04225d30b761b7680fd85Deposit148093242022-05-17 9:59:145 hrs 5 mins ago0x3aa0c2753a3d5c36d233867b5f7f4f471c0e256a IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0028134255 26.5
0x2ced24c250a2adc949c6f227be0d381c0aacff1e8cf88126f7792bc6445c71b3Withdraw148093132022-05-17 9:58:515 hrs 5 mins ago0x3aa0c2753a3d5c36d233867b5f7f4f471c0e256a IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002575853 26.5
0xb6f0c2dbf3c965b3b988a1f71e469319d58dbdbe14f6cebc375bbcccf1674cc4Withdraw148093092022-05-17 9:58:435 hrs 5 mins ago0x3aa0c2753a3d5c36d233867b5f7f4f471c0e256a IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002456285 26.5
0x9861f0460b94e3cb308ba4a80d4c45c62f20ed0000060ade8c37edf1bdcd5e92Deposit148041632022-05-17 7:06:267 hrs 58 mins ago0xac73e304f563163ef25542a2be783379fcf63a50 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0028137435 26.5
0x0bb7f09348a6d3ae8c6faed1568fe82d528b5a0e5214d12968cbea1798172bedWithdraw148041412022-05-17 7:05:417 hrs 58 mins ago0xac73e304f563163ef25542a2be783379fcf63a50 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002456285 26.5
0x5d38f1a6bf9bfafaceac9eb20530797f08b8a12a5f88103ac7f8ea21eae03f24Deposit148036962022-05-17 6:50:438 hrs 13 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0028137435 26.5
0x2c50066a22091910c16eb8eeea0e3e8f53c32b4c57e9555105d70d773a793c54Withdraw148036722022-05-17 6:49:558 hrs 14 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002456285 26.5
0xc4887e1871c7ae4be575f89738c5f0535de55248f2b61e953de7b379fd0536a5Withdraw148036612022-05-17 6:49:338 hrs 14 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002575853 26.5
0x8718b729096a6f5dc6069d2e5b504b130866b12c7fdc6bc2f915924458876a59Withdraw148036512022-05-17 6:49:128 hrs 15 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002575853 26.5
0x7ec28b21dcb321b508d14c4d4456e3f7b61d03f15329d8b694889a06305f2c74Withdraw148036442022-05-17 6:48:558 hrs 15 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0030185355 26.5
0x1c734c619e7dbece96516d5c515488500a21222f43871363dad310ce91628284Withdraw148036132022-05-17 6:47:568 hrs 16 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002628680767 27.153829451
0x1dfe9d710b37764a09483d05e9f2ac560ebdd6a164423c39d1e3a2e114f44da5Withdraw148036032022-05-17 6:47:378 hrs 16 mins ago0xa18e3cb5aef4079fe315038c1b39ea2aabedd637 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0025653855 26.5
0xa0da1e6355992aa9eac99c41f39d1d061269696a4de4bec432a6e16c2ee2e62fWithdraw148003552022-05-17 4:58:4010 hrs 5 mins ago0x23192ad7189c4d78fc44b87c75536c7b8dc51594 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.003060061 26.5
0x3a6979a30c0728027f07eb9c77f87ab22640daff769ab0e304e2c6da4c0a28a3Withdraw148003142022-05-17 4:57:1810 hrs 7 mins ago0x23192ad7189c4d78fc44b87c75536c7b8dc51594 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.003060061 26.5
0x9ab2d9667d22a876b633978eee7061a301da2e85aa6d5f4dfbfcdcafb79caf90Deposit147983502022-05-17 3:51:2811 hrs 13 mins ago0xcc97b2204f8d723421a696c65ae04235f12d4211 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.0028137435 26.5
0xaaf2e37c822e408de523e300e9f3566ea2731c4e33ddd4b8c733cd6d2990bea7Withdraw147983332022-05-17 3:50:5511 hrs 13 mins ago0xcc97b2204f8d723421a696c65ae04235f12d4211 IN  0xdce3b2264b0f271615939d141f4f22bc0b71f81c0 AVAX0.002456285 26.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Farms

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Farms.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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/[email protected]

pragma solidity ^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/utils/[email protected]

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // 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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File @openzeppelin/contracts/utils/math/[email protected]

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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

// File @openzeppelin/contracts/utils/[email protected]

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File @openzeppelin/contracts/access/[email protected]

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        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 contracts/interfaces/IRewardRepository.sol

pragma solidity 0.8.4;

interface IRewardRepository {
    function balance(address _token) external view returns (uint256);

    function transferTo(
        address _token,
        address _receiver,
        uint256 _amount
    ) external;

    function ownerTransferTo(
        address _token,
        address _receiver,
        uint256 _amount
    ) external;
}


// File contracts/Farms.sol

pragma solidity >0.6.12;

// Farms distribute reward tokens based on staking
contract Farms is Ownable {
    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.
        //
        // We do some fancy math here. Basically, any point in time, the amount of Share tokens
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardPerShare` (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. Share tokens to distribute per block.
        uint256 lastRewardBlock; // Last block number that Share token distribution occurs.
        uint256 accRewardPerShare; // Accumulated Share tokens per share, times 1e12. See below.
    }
    // The reward TOKEN!
    IERC20 public rewardToken;
    // reward tokens created per block.
    uint256 public rewardPerBlock;
    uint256 public BONUS_MULTIPLIER = 1;
    address public rewardRepository;
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when reward mining starts.
    uint256 public startBlock;
    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);

    constructor(
        IERC20 _rewardToken,
        address _rewardRepository,
        uint256 _rewardPerBlock,
        uint256 _startBlock
    ) {
        rewardToken = _rewardToken;
        rewardRepository = _rewardRepository;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
    }

    function rewardRepositoryBalance() external view returns (uint256) {
        return IRewardRepository(rewardRepository).balance(address(rewardToken));
    }

    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,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accRewardPerShare: 0}));
    }

    // Update the given pool's reward allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    function setRewardRepository(address _rewardRepository) external onlyOwner {
        require(_rewardRepository != address(0), "Invalid zero address");
        rewardRepository = _rewardRepository;
    }

    // View function to see pending reward tokens on frontend.
    function pendingReward(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 addedReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRewardPerShare = accRewardPerShare.add(addedReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
    }

    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // Update reward vairables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 reward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accRewardPerShare = pool.accRewardPerShare.add(reward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to Farms contract for reward token allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e12).sub(user.rewardDebt);
            safeRewardTransfer(msg.sender, pending);
        }
        pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
        user.amount = user.amount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from Farms contract.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accRewardPerShare).div(1e12).sub(user.rewardDebt);
        safeRewardTransfer(msg.sender, pending);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accRewardPerShare).div(1e12);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    // Safe reward token transfer function, just in case if rounding error causes pool to not have enough reward tokens.
    function safeRewardTransfer(address _to, uint256 _amount) internal {
        IRewardRepository(rewardRepository).transferTo(address(rewardToken), _to, _amount);
    }

    function setRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner {
        massUpdatePools();
        rewardPerBlock = _rewardPerBlock;
    }
    
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_rewardRepository","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","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":"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":"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":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pendingReward","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":"accRewardPerShare","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":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRepository","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRepositoryBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardRepository","type":"address"}],"name":"setRewardRepository","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600355600060075534801561001a57600080fd5b5060405161161f38038061161f833981016040819052610039916100b8565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039586166001600160a01b0319918216179091556004805494909516931692909217909255600291909155600855610117565b600080600080608085870312156100cd578384fd5b84516100d8816100ff565b60208601519094506100e9816100ff565b6040860151606090960151949790965092505050565b6001600160a01b038116811461011457600080fd5b50565b6114f9806101266000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063715018a6116100c357806398969e821161007c57806398969e82146102e4578063a9ddbcf7146102f7578063bb872b4a1461030a578063e2bbb1581461031d578063f2fde38b14610330578063f7c618c11461034357600080fd5b8063715018a61461025f5780638aa28550146102675780638ae39cac146102705780638da5cb5b146102795780638dbb1e3a1461028a57806393f1a40b1461029d57600080fd5b8063441a3e7011610115578063441a3e701461020257806348cd4cb11461021557806351eb05a61461021e5780635312ea8e14610231578063630b5ba11461024457806364482f791461024c57600080fd5b8063081e3eda1461015d5780631526fe271461017457806317caf6f1146101b15780631d153cd8146101ba5780631eaaa045146101e557806324b616d2146101fa575b600080fd5b6005545b6040519081526020015b60405180910390f35b610187610182366004611260565b610356565b604080516001600160a01b039095168552602085019390935291830152606082015260800161016b565b61016160075481565b6004546101cd906001600160a01b031681565b6040516001600160a01b03909116815260200161016b565b6101f86101f33660046112bf565b61039a565b005b6101616104f0565b6101f8610210366004611300565b61057a565b61016160085481565b6101f861022c366004611260565b6106dc565b6101f861023f366004611260565b610820565b6101f86108d0565b6101f861025a366004611321565b6108fb565b6101f86109c6565b61016160035481565b61016160025481565b6000546001600160a01b03166101cd565b610161610298366004611300565b610a3a565b6102cf6102ab366004611290565b60066020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161016b565b6101616102f2366004611290565b610a55565b6101f8610305366004611228565b610bcf565b6101f8610318366004611260565b610c68565b6101f861032b366004611300565b610c9f565b6101f861033e366004611228565b610db8565b6001546101cd906001600160a01b031681565b6005818154811061036657600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b6000546001600160a01b031633146103cd5760405162461bcd60e51b81526004016103c49061139d565b60405180910390fd5b80156103db576103db6108d0565b600060085443116103ee576008546103f0565b435b6007549091506104009085610ea2565b600755604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600490920291820180546001600160a01b031916919096161790945593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1840155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db28301555090517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db390910155565b6004805460015460405163e3d670d760e01b81526001600160a01b039182169381019390935260009291169063e3d670d79060240160206040518083038186803b15801561053d57600080fd5b505afa158015610551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105759190611278565b905090565b60006005838154811061059d57634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600682526040808520338652909252922080546004909202909201925083111561060b5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016103c4565b610614846106dc565b600061064e826001015461064864e8d4a5100061064287600301548760000154610eae90919063ffffffff16565b90610eba565b90610ec6565b905061065a3382610ed2565b81546106669085610ec6565b80835560038401546106839164e8d4a51000916106429190610eae565b6001830155825461069e906001600160a01b03163386610f48565b604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6000600582815481106106ff57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020190508060020154431161071e575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561076157600080fd5b505afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190611278565b9050806107ab57504360029091015550565b60006107bb836002015443610a3a565b905060006107e860075461064286600101546107e260025487610eae90919063ffffffff16565b90610eae565b905061080b610800846106428464e8d4a51000610eae565b600386015490610ea2565b60038501555050436002909201919091555050565b60006005828154811061084357634e487b7160e01b600052603260045260246000fd5b60009182526020808320858452600682526040808520338087529352909320805460049093029093018054909450610888926001600160a01b03919091169190610f48565b8054604051908152839033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a360008082556001909101555050565b60055460005b818110156108f7576108e7816106dc565b6108f08161146c565b90506108d6565b5050565b6000546001600160a01b031633146109255760405162461bcd60e51b81526004016103c49061139d565b8015610933576109336108d0565b6109848261097e6005868154811061095b57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010154600754610ec690919063ffffffff16565b90610ea2565b60078190555081600584815481106109ac57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010181905550505050565b6000546001600160a01b031633146109f05760405162461bcd60e51b81526004016103c49061139d565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600354600090610a4e906107e28486610ec6565b9392505050565b60008060058481548110610a7957634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526006825260408085206001600160a01b038981168752935280852060049485029092016003810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b158015610af057600080fd5b505afa158015610b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b289190611278565b9050836002015443118015610b3c57508015155b15610b9c576000610b51856002015443610a3a565b90506000610b7860075461064288600101546107e260025487610eae90919063ffffffff16565b9050610b97610b90846106428464e8d4a51000610eae565b8590610ea2565b935050505b610bc4836001015461064864e8d4a51000610642868860000154610eae90919063ffffffff16565b979650505050505050565b6000546001600160a01b03163314610bf95760405162461bcd60e51b81526004016103c49061139d565b6001600160a01b038116610c465760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964207a65726f206164647265737360601b60448201526064016103c4565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610c925760405162461bcd60e51b81526004016103c49061139d565b610c9a6108d0565b600255565b600060058381548110610cc257634e487b7160e01b600052603260045260246000fd5b60009182526020808320868452600682526040808520338652909252922060049091029091019150610cf3846106dc565b805415610d36576000610d28826001015461064864e8d4a5100061064287600301548760000154610eae90919063ffffffff16565b9050610d343382610ed2565b505b8154610d4d906001600160a01b0316333086610fb0565b8054610d599084610ea2565b8082556003830154610d769164e8d4a51000916106429190610eae565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a350505050565b6000546001600160a01b03163314610de25760405162461bcd60e51b81526004016103c49061139d565b6001600160a01b038116610e475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c4565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a4e82846113d2565b6000610a4e828461140a565b6000610a4e82846113ea565b6000610a4e8284611429565b600480546001546040516352f950a960e11b81526001600160a01b0391821693810193909352848116602484015260448301849052169063a5f2a15290606401600060405180830381600087803b158015610f2c57600080fd5b505af1158015610f40573d6000803e3d6000fd5b505050505050565b6040516001600160a01b038316602482015260448101829052610fab90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fee565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610fe89085906323b872dd60e01b90608401610f74565b50505050565b6000611043826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110c09092919063ffffffff16565b805190915015610fab57808060200190518101906110619190611244565b610fab5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103c4565b60606110cf84846000856110d7565b949350505050565b6060824710156111385760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103c4565b843b6111865760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c4565b600080866001600160a01b031685876040516111a2919061134e565b60006040518083038185875af1925050503d80600081146111df576040519150601f19603f3d011682016040523d82523d6000602084013e6111e4565b606091505b5091509150610bc4828286606083156111fe575081610a4e565b82511561120e5782518084602001fd5b8160405162461bcd60e51b81526004016103c4919061136a565b600060208284031215611239578081fd5b8135610a4e8161149d565b600060208284031215611255578081fd5b8151610a4e816114b5565b600060208284031215611271578081fd5b5035919050565b600060208284031215611289578081fd5b5051919050565b600080604083850312156112a2578081fd5b8235915060208301356112b48161149d565b809150509250929050565b6000806000606084860312156112d3578081fd5b8335925060208401356112e58161149d565b915060408401356112f5816114b5565b809150509250925092565b60008060408385031215611312578182fd5b50508035926020909101359150565b600080600060608486031215611335578283fd5b833592506020840135915060408401356112f5816114b5565b60008251611360818460208701611440565b9190910192915050565b6020815260008251806020840152611389816040850160208701611440565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156113e5576113e5611487565b500190565b60008261140557634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561142457611424611487565b500290565b60008282101561143b5761143b611487565b500390565b60005b8381101561145b578181015183820152602001611443565b83811115610fe85750506000910152565b600060001982141561148057611480611487565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146114b257600080fd5b50565b80151581146114b257600080fdfea2646970667358221220fe9b52834adf16d8756ebd6957108b0e0aeffcc1bf6b174e6bec5c0123325baa64736f6c63430008040033000000000000000000000000ab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e000000000000000000000000ca9e9d5b6c6983f41e967f4d182edb85868e57ff000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000d34d1a

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

000000000000000000000000ab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e000000000000000000000000ca9e9d5b6c6983f41e967f4d182edb85868e57ff000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000d34d1a

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e
Arg [1] : _rewardRepository (address): 0xca9e9d5b6c6983f41e967f4d182edb85868e57ff
Arg [2] : _rewardPerBlock (uint256): 1000000000000
Arg [3] : _startBlock (uint256): 13847834

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000ab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e
Arg [1] : 000000000000000000000000ca9e9d5b6c6983f41e967f4d182edb85868e57ff
Arg [2] : 000000000000000000000000000000000000000000000000000000e8d4a51000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000d34d1a


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