ETH Price: $2,678.75 (+1.96%)

Contract

0xE17b768dE42c50732e5b5aADc4fB47f89B249D5e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward177487932023-07-22 12:53:35571 days ago1690030415IN
0xE17b768d...89B249D5e
0 ETH0.0044531218.46519829
Withdraw177487492023-07-22 12:44:47571 days ago1690029887IN
0xE17b768d...89B249D5e
0 ETH0.0054187119.01644278
Withdraw172924712023-05-19 8:52:35636 days ago1684486355IN
0xE17b768d...89B249D5e
0 ETH0.0114342646.63982166
Get Reward172924682023-05-19 8:51:59636 days ago1684486319IN
0xE17b768d...89B249D5e
0 ETH0.0121119549.64670661
Withdraw170752332023-04-18 18:09:11666 days ago1681841351IN
0xE17b768d...89B249D5e
0 ETH0.0193961779.1199251
Get Reward170116512023-04-09 15:34:59675 days ago1681054499IN
0xE17b768d...89B249D5e
0 ETH0.005174721.03856488
Get Reward169702822023-04-03 18:30:59681 days ago1680546659IN
0xE17b768d...89B249D5e
0 ETH0.0038267951.37530316
Stake169560032023-04-01 18:13:11683 days ago1680372791IN
0xE17b768d...89B249D5e
0 ETH0.00586819.40202861
Get Reward169474602023-03-31 13:25:47684 days ago1680269147IN
0xE17b768d...89B249D5e
0 ETH0.0070152727.89006608
Stake169344322023-03-29 17:28:59686 days ago1680110939IN
0xE17b768d...89B249D5e
0 ETH0.012111540.04239491
Stake169053692023-03-25 15:28:35690 days ago1679758115IN
0xE17b768d...89B249D5e
0 ETH0.0069447724.09883927
Withdraw168935522023-03-23 23:38:47692 days ago1679614727IN
0xE17b768d...89B249D5e
0 ETH0.0053898721.02700509
Stake168916212023-03-23 17:08:47692 days ago1679591327IN
0xE17b768d...89B249D5e
0 ETH0.0121424440.79205025
Stake168894192023-03-23 9:41:59693 days ago1679564519IN
0xE17b768d...89B249D5e
0 ETH0.0044628814.99288471
Stake168888822023-03-23 7:52:35693 days ago1679557955IN
0xE17b768d...89B249D5e
0 ETH0.0031018111.44298388
Stake168885832023-03-23 6:51:59693 days ago1679554319IN
0xE17b768d...89B249D5e
0 ETH0.0033207510.97891208
Stake168869582023-03-23 1:22:59693 days ago1679534579IN
0xE17b768d...89B249D5e
0 ETH0.0044346414.66274761
Exit168841012023-03-22 15:44:35693 days ago1679499875IN
0xE17b768d...89B249D5e
0 ETH0.0100745827.75207895
Stake168760512023-03-21 12:35:47694 days ago1679402147IN
0xE17b768d...89B249D5e
0 ETH0.0040816414.16417916
Get Reward168751462023-03-21 9:32:11695 days ago1679391131IN
0xE17b768d...89B249D5e
0 ETH0.0032818313.04733763
Stake168750232023-03-21 9:06:47695 days ago1679389607IN
0xE17b768d...89B249D5e
0 ETH0.0035335811.68256313
Stake168746572023-03-21 7:53:23695 days ago1679385203IN
0xE17b768d...89B249D5e
0 ETH0.0034846411.52119728
Stake168728902023-03-21 1:56:35695 days ago1679363795IN
0xE17b768d...89B249D5e
0 ETH0.0041383413.68198141
Withdraw168727542023-03-21 1:29:11695 days ago1679362151IN
0xE17b768d...89B249D5e
0 ETH0.0037045613.54905613
Stake168720252023-03-20 23:02:11695 days ago1679353331IN
0xE17b768d...89B249D5e
0 ETH0.0043367414.33790664
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Farm

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-02-28
*/

// File: @openzeppelin\contracts\utils\math\SafeMath.sol

//SPDX-License-Identifier: Unlicense


pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin\contracts\utils\math\Math.sol

// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin\contracts\token\ERC20\extensions\draft-IERC20Permit.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin\contracts\utils\Address.sol

// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin\contracts\token\ERC20\utils\SafeERC20.sol

// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

// File: @openzeppelin\contracts\security\ReentrancyGuard.sol

// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin\contracts\security\Pausable.sol

// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

/**
 * @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() {
        _paused = false;
    }

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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: @openzeppelin\contracts\access\Ownable.sol

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

    /* ========== STATE VARIABLES ========== */

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public stakingTokensDecimalRate;
    bool private initialised;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor (
        address _rewardsToken,
        address _stakingToken,
        uint _rewardsDuration,
        uint _stakingTokensDecimal
    ) {
        stakingTokensDecimalRate = pow(10, _stakingTokensDecimal);
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDuration = _rewardsDuration;
    }



    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function pow(uint n, uint e) public pure returns (uint) {

        if (e == 0) {
            return 1;
        } else if (e == 1) {
            return n;
        } else {
            uint p = pow(n, e.div(2));
            p = p.mul(p);
            if (e.mod(2) == 1) {
                p = p.mul(n);
            }
            return p;
        }
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
        rewardPerTokenStored.add(
            lastTimeRewardApplicable()
            .sub(lastUpdateTime)
            .mul(rewardRate)
            .mul(stakingTokensDecimalRate)
            .div(_totalSupply)
        );
    }

    function earned(address account) public view returns (uint256) {
        return
        _balances[account]
        .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
        .div(stakingTokensDecimalRate)
        .add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount)
    external
    nonReentrant
    whenNotPaused
    updateReward(msg.sender)
    {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount)
    public
    nonReentrant
    updateReward(msg.sender)
    {
        require(amount > 0, "Cannot withdraw 0");

        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256 reward)
    external
    onlyOwner
    updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance = rewardsToken.balanceOf(address(this));
        require(
            rewardRate <= balance.div(rewardsDuration),
            "Provided reward too high"
        );

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    // Added to support recovering funds in case something wrong with the contract
    function recoverERC20(address tokenAddress, uint256 tokenAmount)
    external
    onlyOwner
    {
        IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    function pause() public onlyOwner {
    _pause();
    }

    function unpause() public onlyOwner {
    _unpause();
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"_stakingTokensDecimal","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","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":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"e","type":"uint256"}],"name":"pow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTokensDecimalRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060045560006005553480156200001b57600080fd5b5060405162002db038038062002db08339818101604052810190620000419190620003a8565b60016000819055506000600160006101000a81548160ff02191690831515021790555062000084620000786200013060201b60201c565b6200013860201b60201c565b62000097600a82620001fb60201b60201c565b60098190555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816006819055505050505062000549565b600033905090565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080821415620002105760019050620002b5565b60018214156200022357829050620002b5565b6000620002518462000245600286620002bb60201b620014fe1790919060201c565b620001fb60201b60201c565b90506200026d8182620002d360201b620015141790919060201c565b905060016200028c600285620002eb60201b6200152a1790919060201c565b1415620002b057620002ad8482620002d360201b620015141790919060201c565b90505b809150505b92915050565b60008183620002cb919062000478565b905092915050565b60008183620002e39190620004b0565b905092915050565b60008183620002fb919062000511565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003358262000308565b9050919050565b620003478162000328565b81146200035357600080fd5b50565b60008151905062000367816200033c565b92915050565b6000819050919050565b62000382816200036d565b81146200038e57600080fd5b50565b600081519050620003a28162000377565b92915050565b60008060008060808587031215620003c557620003c462000303565b5b6000620003d58782880162000356565b9450506020620003e88782880162000356565b9350506040620003fb8782880162000391565b92505060606200040e8782880162000391565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000485826200036d565b915062000492836200036d565b925082620004a557620004a46200041a565b5b828204905092915050565b6000620004bd826200036d565b9150620004ca836200036d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000506576200050562000449565b5b828202905092915050565b60006200051e826200036d565b91506200052b836200036d565b9250826200053e576200053d6200041a565b5b828206905092915050565b61285780620005596000396000f3fe608060405234801561001057600080fd5b50600436106101d95760003560e01c806380faa57d11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146104ea578063e9fad8ee14610508578063ebe2b12b14610512578063f2fde38b14610530576101d9565b8063c8f33c9114610474578063cc1a378f14610492578063cd3daf9d146104ae578063d1af0c7d146104cc576101d9565b80638b876347116100de5780638b876347146103ec5780638da5cb5b1461041c578063a694fc3a1461043a578063a85fe3b714610456576101d9565b806380faa57d146103a85780638456cb59146103c65780638980f11f146103d0576101d9565b80633c6b16ab1161017c57806370a082311161014b57806370a0823114610332578063715018a61461036257806372f702f31461036c5780637b0a47ee1461038a576101d9565b80633c6b16ab146102e45780633d18b912146103005780633f4ba83a1461030a5780635c975abb14610314576101d9565b80631c1f78eb116101b85780631c1f78eb1461025c5780632e1a7d4d1461027a5780632e4c697f14610296578063386a9525146102c6576101d9565b80628cc262146101de5780630700037d1461020e57806318160ddd1461023e575b600080fd5b6101f860048036038101906101f39190611c87565b61054c565b6040516102059190611ccd565b60405180910390f35b61022860048036038101906102239190611c87565b610664565b6040516102359190611ccd565b60405180910390f35b61024661067c565b6040516102539190611ccd565b60405180910390f35b610264610686565b6040516102719190611ccd565b60405180910390f35b610294600480360381019061028f9190611d14565b6106a4565b005b6102b060048036038101906102ab9190611d41565b61092a565b6040516102bd9190611ccd565b60405180910390f35b6102ce6109c1565b6040516102db9190611ccd565b60405180910390f35b6102fe60048036038101906102f99190611d14565b6109c7565b005b610308610c96565b005b610312610ebc565b005b61031c610ece565b6040516103299190611d9c565b60405180910390f35b61034c60048036038101906103479190611c87565b610ee5565b6040516103599190611ccd565b60405180910390f35b61036a610f2e565b005b610374610f42565b6040516103819190611e16565b60405180910390f35b610392610f68565b60405161039f9190611ccd565b60405180910390f35b6103b0610f6e565b6040516103bd9190611ccd565b60405180910390f35b6103ce610f81565b005b6103ea60048036038101906103e59190611e31565b610f93565b005b61040660048036038101906104019190611c87565b611003565b6040516104139190611ccd565b60405180910390f35b61042461101b565b6040516104319190611e80565b60405180910390f35b610454600480360381019061044f9190611d14565b611043565b005b61045e6112d3565b60405161046b9190611ccd565b60405180910390f35b61047c6112d9565b6040516104899190611ccd565b60405180910390f35b6104ac60048036038101906104a79190611d14565b6112df565b005b6104b661136e565b6040516104c39190611ccd565b60405180910390f35b6104d46113f6565b6040516104e19190611e16565b60405180910390f35b6104f261141c565b6040516104ff9190611ccd565b60405180910390f35b610510611422565b005b61051a611474565b6040516105279190611ccd565b60405180910390f35b61054a60048036038101906105459190611c87565b61147a565b005b600061065d600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461064f6009546106416105f3600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105e561136e565b61154090919063ffffffff16565b600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461151490919063ffffffff16565b6114fe90919063ffffffff16565b61155690919063ffffffff16565b9050919050565b600c6020528060005260406000206000915090505481565b6000600d54905090565b600061069f60065460055461151490919063ffffffff16565b905090565b6106ac61156c565b336106b561136e565b6008819055506106c3610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610790576107068161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600082116107d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ca90611ef8565b60405180910390fd5b6107e882600d5461154090919063ffffffff16565b600d8190555061084082600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461154090919063ffffffff16565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108d03383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040516109169190611ccd565b60405180910390a250610927611642565b50565b60008082141561093d57600190506109bb565b600182141561094e578290506109bb565b600061096d846109686002866114fe90919063ffffffff16565b61092a565b9050610982818261151490919063ffffffff16565b9050600161099a60028561152a90919063ffffffff16565b14156109b6576109b3848261151490919063ffffffff16565b90505b809150505b92915050565b60065481565b6109cf61164c565b60006109d961136e565b6008819055506109e7610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab457610a2a8161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610add57610ad2600654836114fe90919063ffffffff16565b600581905550610b3f565b6000610af44260045461154090919063ffffffff16565b90506000610b0d6005548361151490919063ffffffff16565b9050610b36600654610b28838761155690919063ffffffff16565b6114fe90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b9c9190611e80565b602060405180830381865afa158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190611f2d565b9050610bf4600654826114fe90919063ffffffff16565b6005541115610c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2f90611fa6565b60405180910390fd5b42600781905550610c546006544261155690919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d83604051610c899190611ccd565b60405180910390a1505050565b610c9e61156c565b33610ca761136e565b600881905550610cb5610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d8257610cf88161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610eb0576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e613382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ea79190611ccd565b60405180910390a25b5050610eba611642565b565b610ec461164c565b610ecc6116ca565b565b6000600160009054906101000a900460ff16905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f3661164c565b610f40600061172d565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b6000610f7c426004546117f0565b905090565b610f8961164c565b610f91611809565b565b610f9b61164c565b610fc633828473ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051610ff7929190611fc6565b60405180910390a15050565b600b6020528060005260406000206000915090505481565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61104b61156c565b61105361186b565b3361105c61136e565b60088190555061106a610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611137576110ad8161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000821161117a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111719061203b565b60405180910390fd5b61118f82600d5461155690919063ffffffff16565b600d819055506111e782600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461155690919063ffffffff16565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611279333084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118b5909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516112bf9190611ccd565b60405180910390a2506112d0611642565b50565b60095481565b60075481565b6112e761164c565b600454421161132b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611322906120f3565b60405180910390fd5b806006819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36006546040516113639190611ccd565b60405180910390a150565b600080600d5414156113845760085490506113f3565b6113f06113df600d546113d16009546113c36005546113b56007546113a7610f6e565b61154090919063ffffffff16565b61151490919063ffffffff16565b61151490919063ffffffff16565b6114fe90919063ffffffff16565b60085461155690919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b61146a600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106a4565b611472610c96565b565b60045481565b61148261164c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990612185565b60405180910390fd5b6114fb8161172d565b50565b6000818361150c9190612203565b905092915050565b600081836115229190612234565b905092915050565b60008183611538919061228e565b905092915050565b6000818361154e91906122bf565b905092915050565b6000818361156491906122f3565b905092915050565b600260005414156115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a990612395565b60405180910390fd5b6002600081905550565b61163d8363a9059cbb60e01b84846040516024016115db929190611fc6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061193e565b505050565b6001600081905550565b611654611a05565b73ffffffffffffffffffffffffffffffffffffffff1661167261101b565b73ffffffffffffffffffffffffffffffffffffffff16146116c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bf90612401565b60405180910390fd5b565b6116d2611a0d565b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611716611a05565b6040516117239190611e80565b60405180910390a1565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183106117ff5781611801565b825b905092915050565b61181161186b565b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611854611a05565b6040516118619190611e80565b60405180910390a1565b611873610ece565b156118b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118aa9061246d565b60405180910390fd5b565b611938846323b872dd60e01b8585856040516024016118d69392919061248d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061193e565b50505050565b60006119a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a569092919063ffffffff16565b9050600081511115611a0057808060200190518101906119c091906124f0565b6119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f69061258f565b60405180910390fd5b5b505050565b600033905090565b611a15610ece565b611a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4b906125fb565b60405180910390fd5b565b6060611a658484600085611a6e565b90509392505050565b606082471015611ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aaa9061268d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611adc9190612727565b60006040518083038185875af1925050503d8060008114611b19576040519150601f19603f3d011682016040523d82523d6000602084013e611b1e565b606091505b5091509150611b2f87838387611b3b565b92505050949350505050565b60608315611b9e57600083511415611b9657611b5685611bb1565b611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c9061278a565b60405180910390fd5b5b829050611ba9565b611ba88383611bd4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611be75781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1b91906127ff565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c5482611c29565b9050919050565b611c6481611c49565b8114611c6f57600080fd5b50565b600081359050611c8181611c5b565b92915050565b600060208284031215611c9d57611c9c611c24565b5b6000611cab84828501611c72565b91505092915050565b6000819050919050565b611cc781611cb4565b82525050565b6000602082019050611ce26000830184611cbe565b92915050565b611cf181611cb4565b8114611cfc57600080fd5b50565b600081359050611d0e81611ce8565b92915050565b600060208284031215611d2a57611d29611c24565b5b6000611d3884828501611cff565b91505092915050565b60008060408385031215611d5857611d57611c24565b5b6000611d6685828601611cff565b9250506020611d7785828601611cff565b9150509250929050565b60008115159050919050565b611d9681611d81565b82525050565b6000602082019050611db16000830184611d8d565b92915050565b6000819050919050565b6000611ddc611dd7611dd284611c29565b611db7565b611c29565b9050919050565b6000611dee82611dc1565b9050919050565b6000611e0082611de3565b9050919050565b611e1081611df5565b82525050565b6000602082019050611e2b6000830184611e07565b92915050565b60008060408385031215611e4857611e47611c24565b5b6000611e5685828601611c72565b9250506020611e6785828601611cff565b9150509250929050565b611e7a81611c49565b82525050565b6000602082019050611e956000830184611e71565b92915050565b600082825260208201905092915050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b6000611ee2601183611e9b565b9150611eed82611eac565b602082019050919050565b60006020820190508181036000830152611f1181611ed5565b9050919050565b600081519050611f2781611ce8565b92915050565b600060208284031215611f4357611f42611c24565b5b6000611f5184828501611f18565b91505092915050565b7f50726f76696465642072657761726420746f6f20686967680000000000000000600082015250565b6000611f90601883611e9b565b9150611f9b82611f5a565b602082019050919050565b60006020820190508181036000830152611fbf81611f83565b9050919050565b6000604082019050611fdb6000830185611e71565b611fe86020830184611cbe565b9392505050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000612025600e83611e9b565b915061203082611fef565b602082019050919050565b6000602082019050818103600083015261205481612018565b9050919050565b7f50726576696f7573207265776172647320706572696f64206d7573742062652060008201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260208201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000604082015250565b60006120dd605883611e9b565b91506120e88261205b565b606082019050919050565b6000602082019050818103600083015261210c816120d0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061216f602683611e9b565b915061217a82612113565b604082019050919050565b6000602082019050818103600083015261219e81612162565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061220e82611cb4565b915061221983611cb4565b925082612229576122286121a5565b5b828204905092915050565b600061223f82611cb4565b915061224a83611cb4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612283576122826121d4565b5b828202905092915050565b600061229982611cb4565b91506122a483611cb4565b9250826122b4576122b36121a5565b5b828206905092915050565b60006122ca82611cb4565b91506122d583611cb4565b9250828210156122e8576122e76121d4565b5b828203905092915050565b60006122fe82611cb4565b915061230983611cb4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561233e5761233d6121d4565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061237f601f83611e9b565b915061238a82612349565b602082019050919050565b600060208201905081810360008301526123ae81612372565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123eb602083611e9b565b91506123f6826123b5565b602082019050919050565b6000602082019050818103600083015261241a816123de565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612457601083611e9b565b915061246282612421565b602082019050919050565b600060208201905081810360008301526124868161244a565b9050919050565b60006060820190506124a26000830186611e71565b6124af6020830185611e71565b6124bc6040830184611cbe565b949350505050565b6124cd81611d81565b81146124d857600080fd5b50565b6000815190506124ea816124c4565b92915050565b60006020828403121561250657612505611c24565b5b6000612514848285016124db565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612579602a83611e9b565b91506125848261251d565b604082019050919050565b600060208201905081810360008301526125a88161256c565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006125e5601483611e9b565b91506125f0826125af565b602082019050919050565b60006020820190508181036000830152612614816125d8565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612677602683611e9b565b91506126828261261b565b604082019050919050565b600060208201905081810360008301526126a68161266a565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156126e15780820151818401526020810190506126c6565b838111156126f0576000848401525b50505050565b6000612701826126ad565b61270b81856126b8565b935061271b8185602086016126c3565b80840191505092915050565b600061273382846126f6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612774601d83611e9b565b915061277f8261273e565b602082019050919050565b600060208201905081810360008301526127a381612767565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006127d1826127aa565b6127db8185611e9b565b93506127eb8185602086016126c3565b6127f4816127b5565b840191505092915050565b6000602082019050818103600083015261281981846127c6565b90509291505056fea26469706673582212209cb56c344c8168ca9f4126665e0250863f061b63e8baa070c47ce867f109b46c64736f6c634300080a0033000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c5000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c50000000000000000000000000000000000000000000000000000000000278d000000000000000000000000000000000000000000000000000000000000000008

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101d95760003560e01c806380faa57d11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146104ea578063e9fad8ee14610508578063ebe2b12b14610512578063f2fde38b14610530576101d9565b8063c8f33c9114610474578063cc1a378f14610492578063cd3daf9d146104ae578063d1af0c7d146104cc576101d9565b80638b876347116100de5780638b876347146103ec5780638da5cb5b1461041c578063a694fc3a1461043a578063a85fe3b714610456576101d9565b806380faa57d146103a85780638456cb59146103c65780638980f11f146103d0576101d9565b80633c6b16ab1161017c57806370a082311161014b57806370a0823114610332578063715018a61461036257806372f702f31461036c5780637b0a47ee1461038a576101d9565b80633c6b16ab146102e45780633d18b912146103005780633f4ba83a1461030a5780635c975abb14610314576101d9565b80631c1f78eb116101b85780631c1f78eb1461025c5780632e1a7d4d1461027a5780632e4c697f14610296578063386a9525146102c6576101d9565b80628cc262146101de5780630700037d1461020e57806318160ddd1461023e575b600080fd5b6101f860048036038101906101f39190611c87565b61054c565b6040516102059190611ccd565b60405180910390f35b61022860048036038101906102239190611c87565b610664565b6040516102359190611ccd565b60405180910390f35b61024661067c565b6040516102539190611ccd565b60405180910390f35b610264610686565b6040516102719190611ccd565b60405180910390f35b610294600480360381019061028f9190611d14565b6106a4565b005b6102b060048036038101906102ab9190611d41565b61092a565b6040516102bd9190611ccd565b60405180910390f35b6102ce6109c1565b6040516102db9190611ccd565b60405180910390f35b6102fe60048036038101906102f99190611d14565b6109c7565b005b610308610c96565b005b610312610ebc565b005b61031c610ece565b6040516103299190611d9c565b60405180910390f35b61034c60048036038101906103479190611c87565b610ee5565b6040516103599190611ccd565b60405180910390f35b61036a610f2e565b005b610374610f42565b6040516103819190611e16565b60405180910390f35b610392610f68565b60405161039f9190611ccd565b60405180910390f35b6103b0610f6e565b6040516103bd9190611ccd565b60405180910390f35b6103ce610f81565b005b6103ea60048036038101906103e59190611e31565b610f93565b005b61040660048036038101906104019190611c87565b611003565b6040516104139190611ccd565b60405180910390f35b61042461101b565b6040516104319190611e80565b60405180910390f35b610454600480360381019061044f9190611d14565b611043565b005b61045e6112d3565b60405161046b9190611ccd565b60405180910390f35b61047c6112d9565b6040516104899190611ccd565b60405180910390f35b6104ac60048036038101906104a79190611d14565b6112df565b005b6104b661136e565b6040516104c39190611ccd565b60405180910390f35b6104d46113f6565b6040516104e19190611e16565b60405180910390f35b6104f261141c565b6040516104ff9190611ccd565b60405180910390f35b610510611422565b005b61051a611474565b6040516105279190611ccd565b60405180910390f35b61054a60048036038101906105459190611c87565b61147a565b005b600061065d600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461064f6009546106416105f3600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105e561136e565b61154090919063ffffffff16565b600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461151490919063ffffffff16565b6114fe90919063ffffffff16565b61155690919063ffffffff16565b9050919050565b600c6020528060005260406000206000915090505481565b6000600d54905090565b600061069f60065460055461151490919063ffffffff16565b905090565b6106ac61156c565b336106b561136e565b6008819055506106c3610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610790576107068161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600082116107d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ca90611ef8565b60405180910390fd5b6107e882600d5461154090919063ffffffff16565b600d8190555061084082600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461154090919063ffffffff16565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108d03383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040516109169190611ccd565b60405180910390a250610927611642565b50565b60008082141561093d57600190506109bb565b600182141561094e578290506109bb565b600061096d846109686002866114fe90919063ffffffff16565b61092a565b9050610982818261151490919063ffffffff16565b9050600161099a60028561152a90919063ffffffff16565b14156109b6576109b3848261151490919063ffffffff16565b90505b809150505b92915050565b60065481565b6109cf61164c565b60006109d961136e565b6008819055506109e7610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab457610a2a8161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610add57610ad2600654836114fe90919063ffffffff16565b600581905550610b3f565b6000610af44260045461154090919063ffffffff16565b90506000610b0d6005548361151490919063ffffffff16565b9050610b36600654610b28838761155690919063ffffffff16565b6114fe90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b9c9190611e80565b602060405180830381865afa158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd9190611f2d565b9050610bf4600654826114fe90919063ffffffff16565b6005541115610c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2f90611fa6565b60405180910390fd5b42600781905550610c546006544261155690919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d83604051610c899190611ccd565b60405180910390a1505050565b610c9e61156c565b33610ca761136e565b600881905550610cb5610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d8257610cf88161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610eb0576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e613382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610ea79190611ccd565b60405180910390a25b5050610eba611642565b565b610ec461164c565b610ecc6116ca565b565b6000600160009054906101000a900460ff16905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f3661164c565b610f40600061172d565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b6000610f7c426004546117f0565b905090565b610f8961164c565b610f91611809565b565b610f9b61164c565b610fc633828473ffffffffffffffffffffffffffffffffffffffff166115bc9092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051610ff7929190611fc6565b60405180910390a15050565b600b6020528060005260406000206000915090505481565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61104b61156c565b61105361186b565b3361105c61136e565b60088190555061106a610f6e565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611137576110ad8161054c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000821161117a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111719061203b565b60405180910390fd5b61118f82600d5461155690919063ffffffff16565b600d819055506111e782600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461155690919063ffffffff16565b600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611279333084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118b5909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040516112bf9190611ccd565b60405180910390a2506112d0611642565b50565b60095481565b60075481565b6112e761164c565b600454421161132b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611322906120f3565b60405180910390fd5b806006819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36006546040516113639190611ccd565b60405180910390a150565b600080600d5414156113845760085490506113f3565b6113f06113df600d546113d16009546113c36005546113b56007546113a7610f6e565b61154090919063ffffffff16565b61151490919063ffffffff16565b61151490919063ffffffff16565b6114fe90919063ffffffff16565b60085461155690919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b61146a600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106a4565b611472610c96565b565b60045481565b61148261164c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990612185565b60405180910390fd5b6114fb8161172d565b50565b6000818361150c9190612203565b905092915050565b600081836115229190612234565b905092915050565b60008183611538919061228e565b905092915050565b6000818361154e91906122bf565b905092915050565b6000818361156491906122f3565b905092915050565b600260005414156115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a990612395565b60405180910390fd5b6002600081905550565b61163d8363a9059cbb60e01b84846040516024016115db929190611fc6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061193e565b505050565b6001600081905550565b611654611a05565b73ffffffffffffffffffffffffffffffffffffffff1661167261101b565b73ffffffffffffffffffffffffffffffffffffffff16146116c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bf90612401565b60405180910390fd5b565b6116d2611a0d565b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611716611a05565b6040516117239190611e80565b60405180910390a1565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183106117ff5781611801565b825b905092915050565b61181161186b565b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611854611a05565b6040516118619190611e80565b60405180910390a1565b611873610ece565b156118b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118aa9061246d565b60405180910390fd5b565b611938846323b872dd60e01b8585856040516024016118d69392919061248d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061193e565b50505050565b60006119a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a569092919063ffffffff16565b9050600081511115611a0057808060200190518101906119c091906124f0565b6119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f69061258f565b60405180910390fd5b5b505050565b600033905090565b611a15610ece565b611a54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4b906125fb565b60405180910390fd5b565b6060611a658484600085611a6e565b90509392505050565b606082471015611ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aaa9061268d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611adc9190612727565b60006040518083038185875af1925050503d8060008114611b19576040519150601f19603f3d011682016040523d82523d6000602084013e611b1e565b606091505b5091509150611b2f87838387611b3b565b92505050949350505050565b60608315611b9e57600083511415611b9657611b5685611bb1565b611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c9061278a565b60405180910390fd5b5b829050611ba9565b611ba88383611bd4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611be75781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1b91906127ff565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c5482611c29565b9050919050565b611c6481611c49565b8114611c6f57600080fd5b50565b600081359050611c8181611c5b565b92915050565b600060208284031215611c9d57611c9c611c24565b5b6000611cab84828501611c72565b91505092915050565b6000819050919050565b611cc781611cb4565b82525050565b6000602082019050611ce26000830184611cbe565b92915050565b611cf181611cb4565b8114611cfc57600080fd5b50565b600081359050611d0e81611ce8565b92915050565b600060208284031215611d2a57611d29611c24565b5b6000611d3884828501611cff565b91505092915050565b60008060408385031215611d5857611d57611c24565b5b6000611d6685828601611cff565b9250506020611d7785828601611cff565b9150509250929050565b60008115159050919050565b611d9681611d81565b82525050565b6000602082019050611db16000830184611d8d565b92915050565b6000819050919050565b6000611ddc611dd7611dd284611c29565b611db7565b611c29565b9050919050565b6000611dee82611dc1565b9050919050565b6000611e0082611de3565b9050919050565b611e1081611df5565b82525050565b6000602082019050611e2b6000830184611e07565b92915050565b60008060408385031215611e4857611e47611c24565b5b6000611e5685828601611c72565b9250506020611e6785828601611cff565b9150509250929050565b611e7a81611c49565b82525050565b6000602082019050611e956000830184611e71565b92915050565b600082825260208201905092915050565b7f43616e6e6f742077697468647261772030000000000000000000000000000000600082015250565b6000611ee2601183611e9b565b9150611eed82611eac565b602082019050919050565b60006020820190508181036000830152611f1181611ed5565b9050919050565b600081519050611f2781611ce8565b92915050565b600060208284031215611f4357611f42611c24565b5b6000611f5184828501611f18565b91505092915050565b7f50726f76696465642072657761726420746f6f20686967680000000000000000600082015250565b6000611f90601883611e9b565b9150611f9b82611f5a565b602082019050919050565b60006020820190508181036000830152611fbf81611f83565b9050919050565b6000604082019050611fdb6000830185611e71565b611fe86020830184611cbe565b9392505050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000612025600e83611e9b565b915061203082611fef565b602082019050919050565b6000602082019050818103600083015261205481612018565b9050919050565b7f50726576696f7573207265776172647320706572696f64206d7573742062652060008201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260208201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000604082015250565b60006120dd605883611e9b565b91506120e88261205b565b606082019050919050565b6000602082019050818103600083015261210c816120d0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061216f602683611e9b565b915061217a82612113565b604082019050919050565b6000602082019050818103600083015261219e81612162565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061220e82611cb4565b915061221983611cb4565b925082612229576122286121a5565b5b828204905092915050565b600061223f82611cb4565b915061224a83611cb4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612283576122826121d4565b5b828202905092915050565b600061229982611cb4565b91506122a483611cb4565b9250826122b4576122b36121a5565b5b828206905092915050565b60006122ca82611cb4565b91506122d583611cb4565b9250828210156122e8576122e76121d4565b5b828203905092915050565b60006122fe82611cb4565b915061230983611cb4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561233e5761233d6121d4565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061237f601f83611e9b565b915061238a82612349565b602082019050919050565b600060208201905081810360008301526123ae81612372565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123eb602083611e9b565b91506123f6826123b5565b602082019050919050565b6000602082019050818103600083015261241a816123de565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612457601083611e9b565b915061246282612421565b602082019050919050565b600060208201905081810360008301526124868161244a565b9050919050565b60006060820190506124a26000830186611e71565b6124af6020830185611e71565b6124bc6040830184611cbe565b949350505050565b6124cd81611d81565b81146124d857600080fd5b50565b6000815190506124ea816124c4565b92915050565b60006020828403121561250657612505611c24565b5b6000612514848285016124db565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612579602a83611e9b565b91506125848261251d565b604082019050919050565b600060208201905081810360008301526125a88161256c565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006125e5601483611e9b565b91506125f0826125af565b602082019050919050565b60006020820190508181036000830152612614816125d8565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612677602683611e9b565b91506126828261261b565b604082019050919050565b600060208201905081810360008301526126a68161266a565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156126e15780820151818401526020810190506126c6565b838111156126f0576000848401525b50505050565b6000612701826126ad565b61270b81856126b8565b935061271b8185602086016126c3565b80840191505092915050565b600061273382846126f6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612774601d83611e9b565b915061277f8261273e565b602082019050919050565b600060208201905081810360008301526127a381612767565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006127d1826127aa565b6127db8185611e9b565b93506127eb8185602086016126c3565b6127f4816127b5565b840191505092915050565b6000602082019050818103600083015261281981846127c6565b90509291505056fea26469706673582212209cb56c344c8168ca9f4126665e0250863f061b63e8baa070c47ce867f109b46c64736f6c634300080a0033

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

000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c5000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c50000000000000000000000000000000000000000000000000000000000278d000000000000000000000000000000000000000000000000000000000000000008

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0xd5De579f8324E3625bDC5E8C6F3dB248614a41C5
Arg [1] : _stakingToken (address): 0xd5De579f8324E3625bDC5E8C6F3dB248614a41C5
Arg [2] : _rewardsDuration (uint256): 2592000
Arg [3] : _stakingTokensDecimal (uint256): 8

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c5
Arg [1] : 000000000000000000000000d5de579f8324e3625bdc5e8c6f3db248614a41c5
Arg [2] : 0000000000000000000000000000000000000000000000000000000000278d00
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008


Deployed Bytecode Sourcemap

47980:6753:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50298:257;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48556:42;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;49164:93;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;50563:121;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;51162:379;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;49265:364;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48298:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;52025:1129;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;51549:307;;;:::i;:::-;;53915:61;;;:::i;:::-;;44329:86;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;49637:112;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;47163:103;;;:::i;:::-;;48191:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48262:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;49757:131;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53850:57;;;:::i;:::-;;53246:228;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;48492:57;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;46515:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;50746:408;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;48413:39;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48335:29;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53482:360;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;49896:394;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48158:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;48371:35;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;51864:97;;;:::i;:::-;;48224:31;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;47421:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;50298:257;50352:7;50388:159;50530:7;:16;50538:7;50530:16;;;;;;;;;;;;;;;;50388:127;50490:24;;50388:87;50421:53;50442:22;:31;50465:7;50442:31;;;;;;;;;;;;;;;;50421:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;50388:9;:18;50398:7;50388:18;;;;;;;;;;;;;;;;:32;;:87;;;;:::i;:::-;:101;;:127;;;;:::i;:::-;:141;;:159;;;;:::i;:::-;50372:175;;50298:257;;;:::o;48556:42::-;;;;;;;;;;;;;;;;;:::o;49164:93::-;49210:7;49237:12;;49230:19;;49164:93;:::o;50563:121::-;50618:7;50645:31;50660:15;;50645:10;;:14;;:31;;;;:::i;:::-;50638:38;;50563:121;:::o;51162:379::-;41222:21;:19;:21::i;:::-;51244:10:::1;54102:16;:14;:16::i;:::-;54079:20;:39;;;;54146:26;:24;:26::i;:::-;54129:14;:43;;;;54206:1;54187:21;;:7;:21;;;54183:157;;54244:15;54251:7;54244:6;:15::i;:::-;54225:7;:16;54233:7;54225:16;;;;;;;;;;;;;;;:34;;;;54308:20;;54274:22;:31;54297:7;54274:31;;;;;;;;;;;;;;;:54;;;;54183:157;51289:1:::2;51280:6;:10;51272:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;51340:24;51357:6;51340:12;;:16;;:24;;;;:::i;:::-;51325:12;:39;;;;51399:33;51425:6;51399:9;:21;51409:10;51399:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;51375:9;:21;51385:10;51375:21;;;;;;;;;;;;;;;:57;;;;51443:45;51469:10;51481:6;51443:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;51514:10;51504:29;;;51526:6;51504:29;;;;;;:::i;:::-;;;;;;;;41254:1:::1;41266:20:::0;:18;:20::i;:::-;51162:379;:::o;49265:364::-;49315:4;49343:1;49338;:6;49334:288;;;49368:1;49361:8;;;;49334:288;49396:1;49391;:6;49387:235;;;49421:1;49414:8;;;;49387:235;49455:6;49464:16;49468:1;49471:8;49477:1;49471;:5;;:8;;;;:::i;:::-;49464:3;:16::i;:::-;49455:25;;49499:8;49505:1;49499;:5;;:8;;;;:::i;:::-;49495:12;;49538:1;49526:8;49532:1;49526;:5;;:8;;;;:::i;:::-;:13;49522:66;;;49564:8;49570:1;49564;:5;;:8;;;;:::i;:::-;49560:12;;49522:66;49609:1;49602:8;;;49265:364;;;;;:::o;48298:30::-;;;;:::o;52025:1129::-;46401:13;:11;:13::i;:::-;52124:1:::1;54102:16;:14;:16::i;:::-;54079:20;:39;;;;54146:26;:24;:26::i;:::-;54129:14;:43;;;;54206:1;54187:21;;:7;:21;;;54183:157;;54244:15;54251:7;54244:6;:15::i;:::-;54225:7;:16;54233:7;54225:16;;;;;;;;;;;;;;;:34;;;;54308:20;;54274:22;:31;54297:7;54274:31;;;;;;;;;;;;;;;:54;;;;54183:157;52167:12:::2;;52148:15;:31;52144:318;;52209:27;52220:15;;52209:6;:10;;:27;;;;:::i;:::-;52196:10;:40;;;;52144:318;;;52269:17;52289:33;52306:15;52289:12;;:16;;:33;;;;:::i;:::-;52269:53;;52337:16;52356:25;52370:10;;52356:9;:13;;:25;;;;:::i;:::-;52337:44;;52409:41;52434:15;;52409:20;52420:8;52409:6;:10;;:20;;;;:::i;:::-;:24;;:41;;;;:::i;:::-;52396:10;:54;;;;52254:208;;52144:318;52822:15;52840:12;;;;;;;;;;;:22;;;52871:4;52840:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52822:55;;52924:28;52936:15;;52924:7;:11;;:28;;;;:::i;:::-;52910:10;;:42;;52888:116;;;;;;;;;;;;:::i;:::-;;;;;;;;;53034:15;53017:14;:32;;;;53075:36;53095:15;;53075;:19;;:36;;;;:::i;:::-;53060:12;:51;;;;53127:19;53139:6;53127:19;;;;;;:::i;:::-;;;;;;;;52133:1021;46425:1:::1;52025:1129:::0;:::o;51549:307::-;41222:21;:19;:21::i;:::-;51603:10:::1;54102:16;:14;:16::i;:::-;54079:20;:39;;;;54146:26;:24;:26::i;:::-;54129:14;:43;;;;54206:1;54187:21;;:7;:21;;;54183:157;;54244:15;54251:7;54244:6;:15::i;:::-;54225:7;:16;54233:7;54225:16;;;;;;;;;;;;;;;:34;;;;54308:20;;54274:22;:31;54297:7;54274:31;;;;;;;;;;;;;;;:54;;;;54183:157;51626:14:::2;51643:7;:19;51651:10;51643:19;;;;;;;;;;;;;;;;51626:36;;51686:1;51677:6;:10;51673:176;;;51726:1;51704:7;:19;51712:10;51704:19;;;;;;;;;;;;;;;:23;;;;51742:45;51768:10;51780:6;51742:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;51818:10;51807:30;;;51830:6;51807:30;;;;;;:::i;:::-;;;;;;;;51673:176;51615:241;41254:1:::1;41266:20:::0;:18;:20::i;:::-;51549:307::o;53915:61::-;46401:13;:11;:13::i;:::-;53958:10:::1;:8;:10::i;:::-;53915:61::o:0;44329:86::-;44376:4;44400:7;;;;;;;;;;;44393:14;;44329:86;:::o;49637:112::-;49696:7;49723:9;:18;49733:7;49723:18;;;;;;;;;;;;;;;;49716:25;;49637:112;;;:::o;47163:103::-;46401:13;:11;:13::i;:::-;47228:30:::1;47255:1;47228:18;:30::i;:::-;47163:103::o:0;48191:26::-;;;;;;;;;;;;;:::o;48262:29::-;;;;:::o;49757:131::-;49814:7;49841:39;49850:15;49867:12;;49841:8;:39::i;:::-;49834:46;;49757:131;:::o;53850:57::-;46401:13;:11;:13::i;:::-;53891:8:::1;:6;:8::i;:::-;53850:57::o:0;53246:228::-;46401:13;:11;:13::i;:::-;53356:58:::1;53390:10;53402:11;53363:12;53356:33;;;;:58;;;;;:::i;:::-;53430:36;53440:12;53454:11;53430:36;;;;;;;:::i;:::-;;;;;;;;53246:228:::0;;:::o;48492:57::-;;;;;;;;;;;;;;;;;:::o;46515:87::-;46561:7;46588:6;;;;;;;;;;46581:13;;46515:87;:::o;50746:408::-;41222:21;:19;:21::i;:::-;43934:19:::1;:17;:19::i;:::-;50846:10:::2;54102:16;:14;:16::i;:::-;54079:20;:39;;;;54146:26;:24;:26::i;:::-;54129:14;:43;;;;54206:1;54187:21;;:7;:21;;;54183:157;;54244:15;54251:7;54244:6;:15::i;:::-;54225:7;:16;54233:7;54225:16;;;;;;;;;;;;;;;:34;;;;54308:20;;54274:22;:31;54297:7;54274:31;;;;;;;;;;;;;;;:54;;;;54183:157;50891:1:::3;50882:6;:10;50874:37;;;;;;;;;;;;:::i;:::-;;;;;;;;;50937:24;50954:6;50937:12;;:16;;:24;;;;:::i;:::-;50922:12;:39;;;;50996:33;51022:6;50996:9;:21;51006:10;50996:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;50972:9;:21;50982:10;50972:21;;;;;;;;;;;;;;;:57;;;;51040:64;51070:10;51090:4;51097:6;51040:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;51127:10;51120:26;;;51139:6;51120:26;;;;;;:::i;:::-;;;;;;;;43964:1:::2;41266:20:::0;:18;:20::i;:::-;50746:408;:::o;48413:39::-;;;;:::o;48335:29::-;;;;:::o;53482:360::-;46401:13;:11;:13::i;:::-;53606:12:::1;;53588:15;:30;53566:168;;;;;;;;;;;;:::i;:::-;;;;;;;;;53763:16;53745:15;:34;;;;53795:39;53818:15;;53795:39;;;;;;:::i;:::-;;;;;;;;53482:360:::0;:::o;49896:394::-;49943:7;49983:1;49967:12;;:17;49963:77;;;50008:20;;50001:27;;;;49963:77;50066:216;50105:166;50258:12;;50105:134;50214:24;;50105:90;50184:10;;50105:60;50150:14;;50105:26;:24;:26::i;:::-;:44;;:60;;;;:::i;:::-;:78;;:90;;;;:::i;:::-;:108;;:134;;;;:::i;:::-;:152;;:166;;;;:::i;:::-;50066:20;;:24;;:216;;;;:::i;:::-;50050:232;;49896:394;;:::o;48158:26::-;;;;;;;;;;;;;:::o;48371:35::-;;;;:::o;51864:97::-;51900:31;51909:9;:21;51919:10;51909:21;;;;;;;;;;;;;;;;51900:8;:31::i;:::-;51942:11;:9;:11::i;:::-;51864:97::o;48224:31::-;;;;:::o;47421:201::-;46401:13;:11;:13::i;:::-;47530:1:::1;47510:22;;:8;:22;;;;47502:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;47586:28;47605:8;47586:18;:28::i;:::-;47421:201:::0;:::o;3976:98::-;4034:7;4065:1;4061;:5;;;;:::i;:::-;4054:12;;3976:98;;;;:::o;3577:::-;3635:7;3666:1;3662;:5;;;;:::i;:::-;3655:12;;3577:98;;;;:::o;4541:::-;4599:7;4630:1;4626;:5;;;;:::i;:::-;4619:12;;4541:98;;;;:::o;3220:::-;3278:7;3309:1;3305;:5;;;;:::i;:::-;3298:12;;3220:98;;;;:::o;2839:::-;2897:7;2928:1;2924;:5;;;;:::i;:::-;2917:12;;2839:98;;;;:::o;41302:293::-;40704:1;41436:7;;:19;;41428:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;40704:1;41569:7;:18;;;;41302:293::o;35116:211::-;35233:86;35253:5;35283:23;;;35308:2;35312:5;35260:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35233:19;:86::i;:::-;35116:211;;;:::o;41603:213::-;40660:1;41786:7;:22;;;;41603:213::o;46680:132::-;46755:12;:10;:12::i;:::-;46744:23;;:7;:5;:7::i;:::-;:23;;;46736:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;46680:132::o;45184:120::-;44193:16;:14;:16::i;:::-;45253:5:::1;45243:7;;:15;;;;;;;;;;;;;;;;;;45274:22;45283:12;:10;:12::i;:::-;45274:22;;;;;;:::i;:::-;;;;;;;;45184:120::o:0;47782:191::-;47856:16;47875:6;;;;;;;;;;47856:25;;47901:8;47892:6;;:17;;;;;;;;;;;;;;;;;;47956:8;47925:40;;47946:8;47925:40;;;;;;;;;;;;47845:128;47782:191;:::o;7613:106::-;7671:7;7702:1;7698;:5;:13;;7710:1;7698:13;;;7706:1;7698:13;7691:20;;7613:106;;;;:::o;44925:118::-;43934:19;:17;:19::i;:::-;44995:4:::1;44985:7:::0;::::1;:14;;;;;;;;;;;;;;;;;;45015:20;45022:12;:10;:12::i;:::-;45015:20;;;;;;:::i;:::-;;;;;;;;44925:118::o:0;44488:108::-;44559:8;:6;:8::i;:::-;44558:9;44550:38;;;;;;;;;;;;:::i;:::-;;;;;;;;;44488:108::o;35335:248::-;35479:96;35499:5;35529:27;;;35558:4;35564:2;35568:5;35506:68;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35479:19;:96::i;:::-;35335:248;;;;:::o;38183:716::-;38607:23;38633:69;38661:4;38633:69;;;;;;;;;;;;;;;;;38641:5;38633:27;;;;:69;;;;;:::i;:::-;38607:95;;38737:1;38717:10;:17;:21;38713:179;;;38814:10;38803:30;;;;;;;;;;;;:::i;:::-;38795:85;;;;;;;;;;;;:::i;:::-;;;;;;;;;38713:179;38253:646;38183:716;;:::o;42473:98::-;42526:7;42553:10;42546:17;;42473:98;:::o;44673:108::-;44740:8;:6;:8::i;:::-;44732:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;44673:108::o;28999:229::-;29136:12;29168:52;29190:6;29198:4;29204:1;29207:12;29168:21;:52::i;:::-;29161:59;;28999:229;;;;;:::o;30119:455::-;30289:12;30347:5;30322:21;:30;;30314:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;30407:12;30421:23;30448:6;:11;;30467:5;30474:4;30448:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30406:73;;;;30497:69;30524:6;30532:7;30541:10;30553:12;30497:26;:69::i;:::-;30490:76;;;;30119:455;;;;;;:::o;32692:644::-;32877:12;32906:7;32902:427;;;32955:1;32934:10;:17;:22;32930:290;;;33152:18;33163:6;33152:10;:18::i;:::-;33144:60;;;;;;;;;;;;:::i;:::-;;;;;;;;;32930:290;33241:10;33234:17;;;;32902:427;33284:33;33292:10;33304:12;33284:7;:33::i;:::-;32692:644;;;;;;;:::o;26242:326::-;26302:4;26559:1;26537:7;:19;;;:23;26530:30;;26242:326;;;:::o;33878:552::-;34059:1;34039:10;:17;:21;34035:388;;;34271:10;34265:17;34328:15;34315:10;34311:2;34307:19;34300:44;34035:388;34398:12;34391:20;;;;;;;;;;;:::i;:::-;;;;;;;;88:117:1;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:122::-;1684:24;1702:5;1684:24;:::i;:::-;1677:5;1674:35;1664:63;;1723:1;1720;1713:12;1664:63;1611:122;:::o;1739:139::-;1785:5;1823:6;1810:20;1801:29;;1839:33;1866:5;1839:33;:::i;:::-;1739:139;;;;:::o;1884:329::-;1943:6;1992:2;1980:9;1971:7;1967:23;1963:32;1960:119;;;1998:79;;:::i;:::-;1960:119;2118:1;2143:53;2188:7;2179:6;2168:9;2164:22;2143:53;:::i;:::-;2133:63;;2089:117;1884:329;;;;:::o;2219:474::-;2287:6;2295;2344:2;2332:9;2323:7;2319:23;2315:32;2312:119;;;2350:79;;:::i;:::-;2312:119;2470:1;2495:53;2540:7;2531:6;2520:9;2516:22;2495:53;:::i;:::-;2485:63;;2441:117;2597:2;2623:53;2668:7;2659:6;2648:9;2644:22;2623:53;:::i;:::-;2613:63;;2568:118;2219:474;;;;;:::o;2699:90::-;2733:7;2776:5;2769:13;2762:21;2751:32;;2699:90;;;:::o;2795:109::-;2876:21;2891:5;2876:21;:::i;:::-;2871:3;2864:34;2795:109;;:::o;2910:210::-;2997:4;3035:2;3024:9;3020:18;3012:26;;3048:65;3110:1;3099:9;3095:17;3086:6;3048:65;:::i;:::-;2910:210;;;;:::o;3126:60::-;3154:3;3175:5;3168:12;;3126:60;;;:::o;3192:142::-;3242:9;3275:53;3293:34;3302:24;3320:5;3302:24;:::i;:::-;3293:34;:::i;:::-;3275:53;:::i;:::-;3262:66;;3192:142;;;:::o;3340:126::-;3390:9;3423:37;3454:5;3423:37;:::i;:::-;3410:50;;3340:126;;;:::o;3472:141::-;3537:9;3570:37;3601:5;3570:37;:::i;:::-;3557:50;;3472:141;;;:::o;3619:161::-;3721:52;3767:5;3721:52;:::i;:::-;3716:3;3709:65;3619:161;;:::o;3786:252::-;3894:4;3932:2;3921:9;3917:18;3909:26;;3945:86;4028:1;4017:9;4013:17;4004:6;3945:86;:::i;:::-;3786:252;;;;:::o;4044:474::-;4112:6;4120;4169:2;4157:9;4148:7;4144:23;4140:32;4137:119;;;4175:79;;:::i;:::-;4137:119;4295:1;4320:53;4365:7;4356:6;4345:9;4341:22;4320:53;:::i;:::-;4310:63;;4266:117;4422:2;4448:53;4493:7;4484:6;4473:9;4469:22;4448:53;:::i;:::-;4438:63;;4393:118;4044:474;;;;;:::o;4524:118::-;4611:24;4629:5;4611:24;:::i;:::-;4606:3;4599:37;4524:118;;:::o;4648:222::-;4741:4;4779:2;4768:9;4764:18;4756:26;;4792:71;4860:1;4849:9;4845:17;4836:6;4792:71;:::i;:::-;4648:222;;;;:::o;4876:169::-;4960:11;4994:6;4989:3;4982:19;5034:4;5029:3;5025:14;5010:29;;4876:169;;;;:::o;5051:167::-;5191:19;5187:1;5179:6;5175:14;5168:43;5051:167;:::o;5224:366::-;5366:3;5387:67;5451:2;5446:3;5387:67;:::i;:::-;5380:74;;5463:93;5552:3;5463:93;:::i;:::-;5581:2;5576:3;5572:12;5565:19;;5224:366;;;:::o;5596:419::-;5762:4;5800:2;5789:9;5785:18;5777:26;;5849:9;5843:4;5839:20;5835:1;5824:9;5820:17;5813:47;5877:131;6003:4;5877:131;:::i;:::-;5869:139;;5596:419;;;:::o;6021:143::-;6078:5;6109:6;6103:13;6094:22;;6125:33;6152:5;6125:33;:::i;:::-;6021:143;;;;:::o;6170:351::-;6240:6;6289:2;6277:9;6268:7;6264:23;6260:32;6257:119;;;6295:79;;:::i;:::-;6257:119;6415:1;6440:64;6496:7;6487:6;6476:9;6472:22;6440:64;:::i;:::-;6430:74;;6386:128;6170:351;;;;:::o;6527:174::-;6667:26;6663:1;6655:6;6651:14;6644:50;6527:174;:::o;6707:366::-;6849:3;6870:67;6934:2;6929:3;6870:67;:::i;:::-;6863:74;;6946:93;7035:3;6946:93;:::i;:::-;7064:2;7059:3;7055:12;7048:19;;6707:366;;;:::o;7079:419::-;7245:4;7283:2;7272:9;7268:18;7260:26;;7332:9;7326:4;7322:20;7318:1;7307:9;7303:17;7296:47;7360:131;7486:4;7360:131;:::i;:::-;7352:139;;7079:419;;;:::o;7504:332::-;7625:4;7663:2;7652:9;7648:18;7640:26;;7676:71;7744:1;7733:9;7729:17;7720:6;7676:71;:::i;:::-;7757:72;7825:2;7814:9;7810:18;7801:6;7757:72;:::i;:::-;7504:332;;;;;:::o;7842:164::-;7982:16;7978:1;7970:6;7966:14;7959:40;7842:164;:::o;8012:366::-;8154:3;8175:67;8239:2;8234:3;8175:67;:::i;:::-;8168:74;;8251:93;8340:3;8251:93;:::i;:::-;8369:2;8364:3;8360:12;8353:19;;8012:366;;;:::o;8384:419::-;8550:4;8588:2;8577:9;8573:18;8565:26;;8637:9;8631:4;8627:20;8623:1;8612:9;8608:17;8601:47;8665:131;8791:4;8665:131;:::i;:::-;8657:139;;8384:419;;;:::o;8809:312::-;8949:34;8945:1;8937:6;8933:14;8926:58;9018:34;9013:2;9005:6;9001:15;8994:59;9087:26;9082:2;9074:6;9070:15;9063:51;8809:312;:::o;9127:366::-;9269:3;9290:67;9354:2;9349:3;9290:67;:::i;:::-;9283:74;;9366:93;9455:3;9366:93;:::i;:::-;9484:2;9479:3;9475:12;9468:19;;9127:366;;;:::o;9499:419::-;9665:4;9703:2;9692:9;9688:18;9680:26;;9752:9;9746:4;9742:20;9738:1;9727:9;9723:17;9716:47;9780:131;9906:4;9780:131;:::i;:::-;9772:139;;9499:419;;;:::o;9924:225::-;10064:34;10060:1;10052:6;10048:14;10041:58;10133:8;10128:2;10120:6;10116:15;10109:33;9924:225;:::o;10155:366::-;10297:3;10318:67;10382:2;10377:3;10318:67;:::i;:::-;10311:74;;10394:93;10483:3;10394:93;:::i;:::-;10512:2;10507:3;10503:12;10496:19;;10155:366;;;:::o;10527:419::-;10693:4;10731:2;10720:9;10716:18;10708:26;;10780:9;10774:4;10770:20;10766:1;10755:9;10751:17;10744:47;10808:131;10934:4;10808:131;:::i;:::-;10800:139;;10527:419;;;:::o;10952:180::-;11000:77;10997:1;10990:88;11097:4;11094:1;11087:15;11121:4;11118:1;11111:15;11138:180;11186:77;11183:1;11176:88;11283:4;11280:1;11273:15;11307:4;11304:1;11297:15;11324:185;11364:1;11381:20;11399:1;11381:20;:::i;:::-;11376:25;;11415:20;11433:1;11415:20;:::i;:::-;11410:25;;11454:1;11444:35;;11459:18;;:::i;:::-;11444:35;11501:1;11498;11494:9;11489:14;;11324:185;;;;:::o;11515:348::-;11555:7;11578:20;11596:1;11578:20;:::i;:::-;11573:25;;11612:20;11630:1;11612:20;:::i;:::-;11607:25;;11800:1;11732:66;11728:74;11725:1;11722:81;11717:1;11710:9;11703:17;11699:105;11696:131;;;11807:18;;:::i;:::-;11696:131;11855:1;11852;11848:9;11837:20;;11515:348;;;;:::o;11869:176::-;11901:1;11918:20;11936:1;11918:20;:::i;:::-;11913:25;;11952:20;11970:1;11952:20;:::i;:::-;11947:25;;11991:1;11981:35;;11996:18;;:::i;:::-;11981:35;12037:1;12034;12030:9;12025:14;;11869:176;;;;:::o;12051:191::-;12091:4;12111:20;12129:1;12111:20;:::i;:::-;12106:25;;12145:20;12163:1;12145:20;:::i;:::-;12140:25;;12184:1;12181;12178:8;12175:34;;;12189:18;;:::i;:::-;12175:34;12234:1;12231;12227:9;12219:17;;12051:191;;;;:::o;12248:305::-;12288:3;12307:20;12325:1;12307:20;:::i;:::-;12302:25;;12341:20;12359:1;12341:20;:::i;:::-;12336:25;;12495:1;12427:66;12423:74;12420:1;12417:81;12414:107;;;12501:18;;:::i;:::-;12414:107;12545:1;12542;12538:9;12531:16;;12248:305;;;;:::o;12559:181::-;12699:33;12695:1;12687:6;12683:14;12676:57;12559:181;:::o;12746:366::-;12888:3;12909:67;12973:2;12968:3;12909:67;:::i;:::-;12902:74;;12985:93;13074:3;12985:93;:::i;:::-;13103:2;13098:3;13094:12;13087:19;;12746:366;;;:::o;13118:419::-;13284:4;13322:2;13311:9;13307:18;13299:26;;13371:9;13365:4;13361:20;13357:1;13346:9;13342:17;13335:47;13399:131;13525:4;13399:131;:::i;:::-;13391:139;;13118:419;;;:::o;13543:182::-;13683:34;13679:1;13671:6;13667:14;13660:58;13543:182;:::o;13731:366::-;13873:3;13894:67;13958:2;13953:3;13894:67;:::i;:::-;13887:74;;13970:93;14059:3;13970:93;:::i;:::-;14088:2;14083:3;14079:12;14072:19;;13731:366;;;:::o;14103:419::-;14269:4;14307:2;14296:9;14292:18;14284:26;;14356:9;14350:4;14346:20;14342:1;14331:9;14327:17;14320:47;14384:131;14510:4;14384:131;:::i;:::-;14376:139;;14103:419;;;:::o;14528:166::-;14668:18;14664:1;14656:6;14652:14;14645:42;14528:166;:::o;14700:366::-;14842:3;14863:67;14927:2;14922:3;14863:67;:::i;:::-;14856:74;;14939:93;15028:3;14939:93;:::i;:::-;15057:2;15052:3;15048:12;15041:19;;14700:366;;;:::o;15072:419::-;15238:4;15276:2;15265:9;15261:18;15253:26;;15325:9;15319:4;15315:20;15311:1;15300:9;15296:17;15289:47;15353:131;15479:4;15353:131;:::i;:::-;15345:139;;15072:419;;;:::o;15497:442::-;15646:4;15684:2;15673:9;15669:18;15661:26;;15697:71;15765:1;15754:9;15750:17;15741:6;15697:71;:::i;:::-;15778:72;15846:2;15835:9;15831:18;15822:6;15778:72;:::i;:::-;15860;15928:2;15917:9;15913:18;15904:6;15860:72;:::i;:::-;15497:442;;;;;;:::o;15945:116::-;16015:21;16030:5;16015:21;:::i;:::-;16008:5;16005:32;15995:60;;16051:1;16048;16041:12;15995:60;15945:116;:::o;16067:137::-;16121:5;16152:6;16146:13;16137:22;;16168:30;16192:5;16168:30;:::i;:::-;16067:137;;;;:::o;16210:345::-;16277:6;16326:2;16314:9;16305:7;16301:23;16297:32;16294:119;;;16332:79;;:::i;:::-;16294:119;16452:1;16477:61;16530:7;16521:6;16510:9;16506:22;16477:61;:::i;:::-;16467:71;;16423:125;16210:345;;;;:::o;16561:229::-;16701:34;16697:1;16689:6;16685:14;16678:58;16770:12;16765:2;16757:6;16753:15;16746:37;16561:229;:::o;16796:366::-;16938:3;16959:67;17023:2;17018:3;16959:67;:::i;:::-;16952:74;;17035:93;17124:3;17035:93;:::i;:::-;17153:2;17148:3;17144:12;17137:19;;16796:366;;;:::o;17168:419::-;17334:4;17372:2;17361:9;17357:18;17349:26;;17421:9;17415:4;17411:20;17407:1;17396:9;17392:17;17385:47;17449:131;17575:4;17449:131;:::i;:::-;17441:139;;17168:419;;;:::o;17593:170::-;17733:22;17729:1;17721:6;17717:14;17710:46;17593:170;:::o;17769:366::-;17911:3;17932:67;17996:2;17991:3;17932:67;:::i;:::-;17925:74;;18008:93;18097:3;18008:93;:::i;:::-;18126:2;18121:3;18117:12;18110:19;;17769:366;;;:::o;18141:419::-;18307:4;18345:2;18334:9;18330:18;18322:26;;18394:9;18388:4;18384:20;18380:1;18369:9;18365:17;18358:47;18422:131;18548:4;18422:131;:::i;:::-;18414:139;;18141:419;;;:::o;18566:225::-;18706:34;18702:1;18694:6;18690:14;18683:58;18775:8;18770:2;18762:6;18758:15;18751:33;18566:225;:::o;18797:366::-;18939:3;18960:67;19024:2;19019:3;18960:67;:::i;:::-;18953:74;;19036:93;19125:3;19036:93;:::i;:::-;19154:2;19149:3;19145:12;19138:19;;18797:366;;;:::o;19169:419::-;19335:4;19373:2;19362:9;19358:18;19350:26;;19422:9;19416:4;19412:20;19408:1;19397:9;19393:17;19386:47;19450:131;19576:4;19450:131;:::i;:::-;19442:139;;19169:419;;;:::o;19594:98::-;19645:6;19679:5;19673:12;19663:22;;19594:98;;;:::o;19698:147::-;19799:11;19836:3;19821:18;;19698:147;;;;:::o;19851:307::-;19919:1;19929:113;19943:6;19940:1;19937:13;19929:113;;;20028:1;20023:3;20019:11;20013:18;20009:1;20004:3;20000:11;19993:39;19965:2;19962:1;19958:10;19953:15;;19929:113;;;20060:6;20057:1;20054:13;20051:101;;;20140:1;20131:6;20126:3;20122:16;20115:27;20051:101;19900:258;19851:307;;;:::o;20164:373::-;20268:3;20296:38;20328:5;20296:38;:::i;:::-;20350:88;20431:6;20426:3;20350:88;:::i;:::-;20343:95;;20447:52;20492:6;20487:3;20480:4;20473:5;20469:16;20447:52;:::i;:::-;20524:6;20519:3;20515:16;20508:23;;20272:265;20164:373;;;;:::o;20543:271::-;20673:3;20695:93;20784:3;20775:6;20695:93;:::i;:::-;20688:100;;20805:3;20798:10;;20543:271;;;;:::o;20820:179::-;20960:31;20956:1;20948:6;20944:14;20937:55;20820:179;:::o;21005:366::-;21147:3;21168:67;21232:2;21227:3;21168:67;:::i;:::-;21161:74;;21244:93;21333:3;21244:93;:::i;:::-;21362:2;21357:3;21353:12;21346:19;;21005:366;;;:::o;21377:419::-;21543:4;21581:2;21570:9;21566:18;21558:26;;21630:9;21624:4;21620:20;21616:1;21605:9;21601:17;21594:47;21658:131;21784:4;21658:131;:::i;:::-;21650:139;;21377:419;;;:::o;21802:99::-;21854:6;21888:5;21882:12;21872:22;;21802:99;;;:::o;21907:102::-;21948:6;21999:2;21995:7;21990:2;21983:5;21979:14;21975:28;21965:38;;21907:102;;;:::o;22015:364::-;22103:3;22131:39;22164:5;22131:39;:::i;:::-;22186:71;22250:6;22245:3;22186:71;:::i;:::-;22179:78;;22266:52;22311:6;22306:3;22299:4;22292:5;22288:16;22266:52;:::i;:::-;22343:29;22365:6;22343:29;:::i;:::-;22338:3;22334:39;22327:46;;22107:272;22015:364;;;;:::o;22385:313::-;22498:4;22536:2;22525:9;22521:18;22513:26;;22585:9;22579:4;22575:20;22571:1;22560:9;22556:17;22549:47;22613:78;22686:4;22677:6;22613:78;:::i;:::-;22605:86;;22385:313;;;;:::o

Swarm Source

ipfs://9cb56c344c8168ca9f4126665e0250863f061b63e8baa070c47ce867f109b46c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.