ETH Price: $2,527.16 (+0.18%)

Contract

0xF34976159AdAe214E293Cf03D12d20EADE658A8C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake And Clai...199654372024-05-28 2:39:3593 days ago1716863975IN
0xF3497615...ADE658A8C
0 ETH0.0014311210.91550814
Unstake And Clai...194546662024-03-17 12:49:23165 days ago1710679763IN
0xF3497615...ADE658A8C
0 ETH0.0035856327.34851214
Claim164300792023-01-18 0:22:59590 days ago1674001379IN
0xF3497615...ADE658A8C
0 ETH0.0018672525.14760346
Claim164300712023-01-18 0:21:23590 days ago1674001283IN
0xF3497615...ADE658A8C
0 ETH0.0010703924.67599183
Claim164300712023-01-18 0:21:23590 days ago1674001283IN
0xF3497615...ADE658A8C
0 ETH0.0018322424.67599183
Unstake And Clai...164201472023-01-16 15:08:23591 days ago1673881703IN
0xF3497615...ADE658A8C
0 ETH0.0033442929.33359915
Claim163881132023-01-12 3:43:47595 days ago1673495027IN
0xF3497615...ADE658A8C
0 ETH0.0013365318
Unstake And Clai...163157652023-01-02 1:20:47605 days ago1672622447IN
0xF3497615...ADE658A8C
0 ETH0.0023141417.65055757
Claim163157302023-01-02 1:13:47605 days ago1672622027IN
0xF3497615...ADE658A8C
0 ETH0.0014244719.18437666
Unstake And Clai...163046862022-12-31 12:16:23607 days ago1672488983IN
0xF3497615...ADE658A8C
0 ETH0.0019153216.7997952
Claim163046792022-12-31 12:14:59607 days ago1672488899IN
0xF3497615...ADE658A8C
0 ETH0.0015698817.44023026
Unstake And Clai...163012532022-12-31 0:45:59608 days ago1672447559IN
0xF3497615...ADE658A8C
0 ETH0.0035083730.77277889
Unstake And Clai...162969312022-12-30 10:16:35608 days ago1672395395IN
0xF3497615...ADE658A8C
0 ETH0.0019623915.19949307
Claim162475042022-12-23 12:44:59615 days ago1671799499IN
0xF3497615...ADE658A8C
0 ETH0.000827611.14593512
Claim162217392022-12-19 22:30:59619 days ago1671489059IN
0xF3497615...ADE658A8C
0 ETH0.0018218124.53561385
Claim161977892022-12-16 14:14:47622 days ago1671200087IN
0xF3497615...ADE658A8C
0 ETH0.003075834.16994452
Stake161867452022-12-15 1:14:23623 days ago1671066863IN
0xF3497615...ADE658A8C
0 ETH0.0020986514.82615008
Claim161509712022-12-10 1:18:35628 days ago1670635115IN
0xF3497615...ADE658A8C
0 ETH0.0012169216.38907335
Unstake And Clai...161456162022-12-09 7:18:59629 days ago1670570339IN
0xF3497615...ADE658A8C
0 ETH0.0033458625.51969715
Claim161392232022-12-08 9:53:35630 days ago1670493215IN
0xF3497615...ADE658A8C
0 ETH0.0013585815.09289184
Unstake And Clai...161173932022-12-05 8:24:59633 days ago1670228699IN
0xF3497615...ADE658A8C
0 ETH0.0016884212.87805015
Claim160945622022-12-02 3:53:47636 days ago1669953227IN
0xF3497615...ADE658A8C
0 ETH0.0009901611
Unstake And Clai...160906142022-12-01 14:40:47637 days ago1669905647IN
0xF3497615...ADE658A8C
0 ETH0.0018472216.20241187
Claim160906062022-12-01 14:39:11637 days ago1669905551IN
0xF3497615...ADE658A8C
0 ETH0.0011890316.01350927
Stake157005982022-10-08 3:11:11691 days ago1665198671IN
0xF3497615...ADE658A8C
0 ETH0.000599195.84292443
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:
UNIV2SHRIMPPool

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license, Audited

Contract Source Code (Solidity)Audit Report

/**
 *Submitted for verification at Etherscan.io on 2020-12-05
*/

// SPDX-License-Identifier: https://github.com/lendroidproject/protocol.2.0/blob/master/LICENSE.md


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

pragma solidity ^0.7.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @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, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

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

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

// File: contracts/heartbeat/Pacemaker.sol

pragma solidity 0.7.5;



/** @title Pacemaker
    @author Lendroid Foundation
    @notice Smart contract based on which various events in the Protocol take place
    @dev Audit certificate : Pending
*/


// solhint-disable-next-line
abstract contract Pacemaker {

    using SafeMath for uint256;
    uint256 constant public HEART_BEAT_START_TIME = 1607212800;// 2020-12-06 00:00:00 UTC (UTC +00:00)
    uint256 constant public EPOCH_PERIOD = 8 hours;

    /**
        @notice Displays the epoch which contains the given timestamp
        @return uint256 : Epoch value
    */
    function epochFromTimestamp(uint256 timestamp) public pure returns (uint256) {
        if (timestamp > HEART_BEAT_START_TIME) {
            return timestamp.sub(HEART_BEAT_START_TIME).div(EPOCH_PERIOD).add(1);
        }
        return 0;
    }

    /**
        @notice Displays timestamp when a given epoch began
        @return uint256 : Epoch start time
    */
    function epochStartTimeFromTimestamp(uint256 timestamp) public pure returns (uint256) {
        if (timestamp <= HEART_BEAT_START_TIME) {
            return HEART_BEAT_START_TIME;
        } else {
            return HEART_BEAT_START_TIME.add((epochFromTimestamp(timestamp).sub(1)).mul(EPOCH_PERIOD));
        }
    }

    /**
        @notice Displays timestamp when a given epoch will end
        @return uint256 : Epoch end time
    */
    function epochEndTimeFromTimestamp(uint256 timestamp) public pure returns (uint256) {
        if (timestamp < HEART_BEAT_START_TIME) {
            return HEART_BEAT_START_TIME;
        } else if (timestamp == HEART_BEAT_START_TIME) {
            return HEART_BEAT_START_TIME.add(EPOCH_PERIOD);
        } else {
            return epochStartTimeFromTimestamp(timestamp).add(EPOCH_PERIOD);
        }
    }

    /**
        @notice Calculates current epoch value from the block timestamp
        @dev Calculates the nth 8-hour window frame since the heartbeat's start time
        @return uint256 : Current epoch value
    */
    function currentEpoch() public view returns (uint256) {
        return epochFromTimestamp(block.timestamp);// solhint-disable-line not-rely-on-time
    }

}

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

pragma solidity ^0.7.0;

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

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.7.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.7.0;




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

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

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

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

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

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

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

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

// File: contracts/farming/LPTokenWrapper.sol

pragma solidity 0.7.5;





/** @title LPTokenWrapper
    @author Lendroid Foundation
    @notice Tracks the state of the LP Token staked / unstaked both in total
        and on a per account basis.
    @dev Audit certificate : Pending
*/


// solhint-disable-next-line
abstract contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address;

    IERC20 public lpToken;

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

    /**
        @notice Registers the LP Token address
        @param lpTokenAddress : address of the LP Token
    */
    // solhint-disable-next-line func-visibility
    constructor(address lpTokenAddress) {
        require(lpTokenAddress.isContract(), "invalid lpTokenAddress");
        lpToken = IERC20(lpTokenAddress);
    }

    /**
        @notice Displays the total LP Token staked
        @return uint256 : value of the _totalSupply which stores total LP Tokens staked
    */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
        @notice Displays LP Token staked per account
        @param account : address of a user account
        @return uint256 : total LP staked by given account address
    */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
        @notice Stake / Deposit LP Token into the Pool
        @dev : Increases count of total LP Token staked.
               Increases count of LP Token staked for the msg.sender.
               LP Token is transferred from msg.sender to the Pool.
        @param amount : Amount of LP Token to stake
    */
    function stake(uint256 amount) public virtual {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        lpToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    /**
        @notice Unstake / Withdraw staked LP Token from the Pool
        @dev : Decreases count of total LP Token staked
               Decreases count of LP Token staked for the msg.sender
               LP Token is transferred from the Pool to the msg.sender
        @param amount : Amount of LP Token to withdraw / unstake
    */
    function unstake(uint256 amount) public virtual {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        lpToken.safeTransfer(msg.sender, amount);
    }
}

// File: contracts/farming/BasePool.sol

pragma solidity 0.7.5;





/** @title BasePool
    @author Lendroid Foundation
    @notice Inherits the LPTokenWrapper contract, performs additional functions
        on the stake and unstake functions, and includes logic to calculate and
        withdraw rewards.
        This contract is inherited by all Pool contracts.
    @dev Audit certificate : Pending
*/


// solhint-disable-next-line
abstract contract BasePool is LPTokenWrapper, Pacemaker {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address;

    string public poolName;
    IERC20 public rewardToken;

    uint256 public lastUpdateTime;
    uint256 public cachedRewardPerStake;

    mapping(address => uint256) public userRewardPerStakePaid;
    mapping(address => uint256) public lastEpochStaked;
    mapping(address => uint256) public rewards;

    uint256 public startTime = HEART_BEAT_START_TIME;// 2020-12-04 00:00:00 (UTC UTC +00:00)

    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount);
    event RewardClaimed(address indexed user, uint256 reward);

    /**
        @notice Registers the Pool name, Reward Token address, and LP Token address.
        @param name : Name of the Pool
        @param rewardTokenAddress : address of the Reward Token
        @param lpTokenAddress : address of the LP Token
    */
    // solhint-disable-next-line func-visibility
    constructor(string memory name, address rewardTokenAddress, address lpTokenAddress) LPTokenWrapper(lpTokenAddress) {
        require(rewardTokenAddress.isContract(), "invalid rewardTokenAddress");
        rewardToken = IERC20(rewardTokenAddress);
        // It's OK for the pool name to be empty.
        poolName = name;
    }

    /**
        @notice modifier to check if the startTime has been reached
        @dev Pacemaker.currentEpoch() returns values > 0 only from
            HEART_BEAT_START_TIME+1. Therefore, staking is possible only from
            epoch 1
    */
    modifier checkStart() {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp > startTime, "startTime has not been reached");
        _;
    }

    /**
        @notice Unstake the staked LP Token and claim corresponding earnings from the Pool
        @dev : Perform actions from unstake()
               Perform actions from claim()
    */
    function unstakeAndClaim() external updateRewards(msg.sender) checkStart {
        unstake(balanceOf(msg.sender));
        claim();
    }

    /**
        @notice Displays reward tokens per Lp token staked. Useful to display APY on the frontend
    */
    function rewardPerStake() public view returns (uint256) {
        if (totalSupply() == 0) {
            return cachedRewardPerStake;
        }
        // solhint-disable-next-line not-rely-on-time
        return cachedRewardPerStake.add(block.timestamp.sub(lastUpdateTime).mul(
                rewardRate(currentEpoch())).mul(1e18).div(totalSupply())
            );
    }

    /**
        @notice Displays earnings of an address so far. Useful to display claimable rewards on the frontend
        @param account : the given user address
        @return earnings of given address
    */
    function earned(address account) public view returns (uint256) {
        return balanceOf(account).mul(rewardPerStake().sub(
            userRewardPerStakePaid[account])).div(1e18).add(rewards[account]);
    }

    /**
        @notice modifier to update system and user info whenever a user makes a
            function call to stake, unstake, claim or unstakeAndClaim.
        @dev Updates rewardPerStake and time when system is updated
            Recalculates user rewards
    */
    modifier updateRewards(address account) {
        cachedRewardPerStake = rewardPerStake();
        lastUpdateTime = block.timestamp;// solhint-disable-line not-rely-on-time
        rewards[account] = earned(account);
        userRewardPerStakePaid[account] = cachedRewardPerStake;
        _;
    }

    /**
        @notice Displays reward tokens per second for a given epoch. This
        function is implemented in contracts that inherit this contract.
    */
    function rewardRate(uint256 epoch) public pure virtual returns (uint256);

    /**
        @notice Stake / Deposit LP Token into the Pool.
        @dev Increases count of total LP Token staked in the current epoch.
             Increases count of LP Token staked for the caller in the current epoch.
             Register that caller last staked in the current epoch.
             Perform actions from BasePool.stake().
        @param amount : Amount of LP Token to stake
    */
    function stake(uint256 amount) public checkStart updateRewards(msg.sender) override {
        require(amount > 0, "Cannot stake 0");
        lastEpochStaked[msg.sender] = currentEpoch();
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    /**
        @notice Unstake / Withdraw staked LP Token from the Pool
        @inheritdoc LPTokenWrapper
    */
    function unstake(uint256 amount) public checkStart updateRewards(msg.sender) override {
        require(amount > 0, "Cannot unstake 0");
        require(lastEpochStaked[msg.sender] < currentEpoch(), "Cannot unstake in staked epoch.");
        super.unstake(amount);
        emit Unstaked(msg.sender, amount);
    }

    /**
        @notice Transfers earnings from previous epochs to the caller
    */
    function claim() public checkStart updateRewards(msg.sender) {
        require(rewards[msg.sender] > 0, "No rewards to claim");
        uint256 rewardsEarned = rewards[msg.sender];
        rewards[msg.sender] = 0;
        rewardToken.safeTransfer(msg.sender, rewardsEarned);
        emit RewardClaimed(msg.sender, rewardsEarned);
    }

}

// File: contracts/farming/UNIV2SHRIMPPool.sol

pragma solidity 0.7.5;



/** @title UNIV2SHRIMPPool
    @author Lendroid Foundation
    @notice Inherits the BasePool contract, and contains reward distribution
        logic for the $HRIMP token.
    @dev Audit certificate : Pending
*/


// solhint-disable-next-line
contract UNIV2SHRIMPPool is BasePool {

    using SafeMath for uint256;

    /**
        @notice Registers the Pool name as “UNIV2SHRIMPPool” as Pool name,
                LST-WETH-UNIV2 as the LP Token, and
                $HRIMP as the Reward Token.
        @param rewardTokenAddress : $HRIMP Token address
        @param lpTokenAddress : LST-WETH-UNIV2 Token address
    */
    // solhint-disable-next-line func-visibility
    constructor(address rewardTokenAddress, address lpTokenAddress) BasePool("UNIV2SHRIMPPool",
        rewardTokenAddress, lpTokenAddress) {}// solhint-disable-line no-empty-blocks

    /**
        @notice Displays total $HRIMP rewards distributed per second in a given epoch.
        @dev Series 1 :
                Epochs : 1-84
                Total $HRIMP distributed : 12 M
                Distribution duration : 28 days
            Series 2 :
                Epochs : 85-337
                Total $HRIMP distributed : 21.6 M
                Distribution duration : 84 days
            Series 3 :
                Epochs : 337-589
                Total $HRIMP distributed : 10.8 M
                Distribution duration : 84 days
            Series 4 :
                Epochs : 589-841
                Total $HRIMP distributed : 5.4 M
                Distribution duration : 84 days
            Series 5 :
                Epochs : 841-1093
                Total $HRIMP distributed : 2.7 M
                Distribution duration : 84 days
            Series 6 :
                Epochs : 1094+
                Total $HRIMP distributed : 1.35 M
                Distribution duration : Forever, at 84 day intervals
        @param epoch : 8-hour window number
        @return $HRIMP Tokens distributed per second during the given epoch
    */
    function rewardRate(uint256 epoch) public pure override returns (uint256) {
        uint256 seriesRewards = 0;
        require(epoch > 0, "epoch cannot be 0");
        if (epoch <= 84) {
            seriesRewards = 12000000;// 12 M
        } else if (epoch > 84 && epoch <= 336) {
            seriesRewards = 21600000;// 21.6 M
        } else if (epoch > 336 && epoch <= 588) {
            seriesRewards = 10800000;// 10.8 M
        } else if (epoch > 588 && epoch <= 840) {
            seriesRewards = 5400000;// 5.4 M
        } else if (epoch > 840 && epoch <= 1092) {
            seriesRewards = 2700000;// 2.7 M
        } else {
            seriesRewards = 1350000;// 1.35 M
        }

        seriesRewards = seriesRewards.mul(1e18);
        return (epoch <= 84) ? seriesRewards.div(28 days) : seriesRewards.div(84 days);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"address","name":"lpTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"EPOCH_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HEART_BEAT_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cachedRewardPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentEpoch","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":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"epochEndTimeFromTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"epochFromTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"epochStartTimeFromTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastEpochStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","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":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAndClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerStakePaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052635fcc1f00600a553480156200001957600080fd5b506040516200235d3803806200235d833981810160405260408110156200003f57600080fd5b8101908080519060200190929190805190602001909291905050506040518060400160405280600f81526020017f554e495632534852494d50506f6f6c0000000000000000000000000000000000815250828280620000bf8173ffffffffffffffffffffffffffffffffffffffff166200027760201b620015721760201c565b62000132576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f696e76616c6964206c70546f6b656e416464726573730000000000000000000081525060200191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200019f8273ffffffffffffffffffffffffffffffffffffffff166200027760201b620015721760201c565b62000212576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f696e76616c696420726577617264546f6b656e4164647265737300000000000081525060200191505060405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600390805190602001906200026b929190620002c3565b50505050505062000379565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015620002ba57506000801b8214155b92505050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620002fb576000855562000347565b82601f106200031657805160ff191683800117855562000347565b8280016001018555821562000347579182015b828111156200034657825182559160200191906001019062000329565b5b5090506200035691906200035a565b5090565b5b80821115620003755760008160009055506001016200035b565b5090565b611fd480620003896000396000f3fe608060405234801561001057600080fd5b50600436106101575760003560e01c806378e97925116100c3578063cea019621161007c578063cea0196214610528578063e0febffa1461056a578063f2b05d7614610588578063f3466dfa146105a6578063f7c618c114610629578063f985021a1461065d57610157565b806378e97925146104405780639c511ad41461045e578063a60a04811461047c578063a694fc3a146104be578063a8dc889b146104ec578063c8f33c911461050a57610157565b806343603c431161011557806343603c43146102f25780634e71d92d1461034a5780635fcbd2851461035457806370a082311461038857806376671808146103e057806378cc6cc5146103fe57610157565b80628cc2621461015c5780630700037d146101b45780631607aee71461020c57806318160ddd1461024e5780631b0c04761461026c5780632e17de78146102c4575b600080fd5b61019e6004803603602081101561017257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610667565b6040518082815260200191505060405180910390f35b6101f6600480360360208110156101ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061074e565b6040518082815260200191505060405180910390f35b6102386004803603602081101561022257600080fd5b8101908080359060200190929190505050610766565b6040518082815260200191505060405180910390f35b6102566107c3565b6040518082815260200191505060405180910390f35b6102ae6004803603602081101561028257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107cd565b6040518082815260200191505060405180910390f35b6102f0600480360360208110156102da57600080fd5b81019080803590602001909291905050506107e5565b005b6103346004803603602081101561030857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a90565b6040518082815260200191505060405180910390f35b610352610aa8565b005b61035c610da4565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103ca6004803603602081101561039e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc8565b6040518082815260200191505060405180910390f35b6103e8610e11565b6040518082815260200191505060405180910390f35b61042a6004803603602081101561041457600080fd5b8101908080359060200190929190505050610e21565b6040518082815260200191505060405180910390f35b610448610e8c565b6040518082815260200191505060405180910390f35b610466610e92565b6040518082815260200191505060405180910390f35b6104a86004803603602081101561049257600080fd5b8101908080359060200190929190505050610e98565b6040518082815260200191505060405180910390f35b6104ea600480360360208110156104d457600080fd5b8101908080359060200190929190505050610eff565b005b6104f461113a565b6040518082815260200191505060405180910390f35b6105126111d8565b6040518082815260200191505060405180910390f35b6105546004803603602081101561053e57600080fd5b81019080803590602001909291905050506111de565b6040518082815260200191505060405180910390f35b610572611365565b6040518082815260200191505060405180910390f35b61059061136d565b6040518082815260200191505060405180910390f35b6105ae611373565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105ee5780820151818401526020810190506105d3565b50505050905090810190601f16801561061b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610631611411565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610665611437565b005b6000610747600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610739670de0b6b3a764000061072b610714600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461070661113a565b6115bd90919063ffffffff16565b61071d88610dc8565b61160790919063ffffffff16565b61168d90919063ffffffff16565b6116d790919063ffffffff16565b9050919050565b60096020528060005260406000206000915090505481565b6000635fcc1f008211156107b9576107b260016107a4617080610796635fcc1f00876115bd90919063ffffffff16565b61168d90919063ffffffff16565b6116d790919063ffffffff16565b90506107be565b600090505b919050565b6000600154905090565b60086020528060005260406000206000915090505481565b600a54421161085c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b3361086561113a565b6006819055504260058190555061087b81610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000821161097a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f43616e6e6f7420756e7374616b6520300000000000000000000000000000000081525060200191505060405180910390fd5b610982610e11565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43616e6e6f7420756e7374616b6520696e207374616b65642065706f63682e0081525060200191505060405180910390fd5b610a3e8261175f565b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75836040518082815260200191505060405180910390a25050565b60076020528060005260406000206000915090505481565b600a544211610b1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b33610b2861113a565b60068190555042600581905550610b3e81610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610c7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f207265776172647320746f20636c61696d0000000000000000000000000081525060200191505060405180910390fd5b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d523382600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661185d9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241826040518082815260200191505060405180910390a25050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610e1c42610766565b905090565b6000635fcc1f00821015610e3b57635fcc1f009050610e87565b635fcc1f00821415610e6757610e60617080635fcc1f006116d790919063ffffffff16565b9050610e87565b610e84617080610e7684610e98565b6116d790919063ffffffff16565b90505b919050565b600a5481565b61708081565b6000635fcc1f008211610eb157635fcc1f009050610efa565b610ef7610ee4617080610ed66001610ec887610766565b6115bd90919063ffffffff16565b61160790919063ffffffff16565b635fcc1f006116d790919063ffffffff16565b90505b919050565b600a544211610f76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b33610f7f61113a565b60068190555042600581905550610f9581610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008211611094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61109c610e11565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506110e8826118ff565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b6000806111456107c3565b14156111555760065490506111d5565b6111d26111c16111636107c3565b6111b3670de0b6b3a76400006111a561118261117d610e11565b6111de565b611197600554426115bd90919063ffffffff16565b61160790919063ffffffff16565b61160790919063ffffffff16565b61168d90919063ffffffff16565b6006546116d790919063ffffffff16565b90505b90565b60055481565b600080600090506000831161125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f65706f63682063616e6e6f74206265203000000000000000000000000000000081525060200191505060405180910390fd5b6054831161126e5762b71b009050611305565b60548311801561128057506101508311155b156112915763014997009050611304565b610150831180156112a4575061024c8311155b156112b45762a4cb809050611303565b61024c831180156112c757506103488311155b156112d757625265c09050611302565b610348831180156112ea57506104448311155b156112fa57622932e09050611301565b6214997090505b5b5b5b5b611320670de0b6b3a76400008261160790919063ffffffff16565b9050605483111561134657611341626ebe008261168d90919063ffffffff16565b61135d565b61135c6224ea008261168d90919063ffffffff16565b5b915050919050565b635fcc1f0081565b60065481565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114095780601f106113de57610100808354040283529160200191611409565b820191906000526020600020905b8154815290600101906020018083116113ec57829003601f168201915b505050505081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3361144061113a565b6006819055504260058190555061145681610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a544211611556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b61156761156233610dc8565b6107e5565b61156f610aa8565b50565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156115b457506000801b8214155b92505050919050565b60006115ff83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119ff565b905092915050565b60008083141561161a5760009050611687565b600082840290508284828161162b57fe5b0414611682576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611f546021913960400191505060405180910390fd5b809150505b92915050565b60006116cf83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611abf565b905092915050565b600080828401905083811015611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611774816001546115bd90919063ffffffff16565b6001819055506117cc81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115bd90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061185a338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661185d9092919063ffffffff16565b50565b6118fa8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b85565b505050565b611914816001546116d790919063ffffffff16565b60018190555061196c81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116d790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119fc33308360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611c74909392919063ffffffff16565b50565b6000838311158290611aac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a71578082015181840152602081019050611a56565b50505050905090810190601f168015611a9e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290611b6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b30578082015181840152602081019050611b15565b50505050905090810190601f168015611b5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b7757fe5b049050809150509392505050565b6060611be7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d359092919063ffffffff16565b9050600081511115611c6f57808060200190516020811015611c0857600080fd5b8101908080519060200190929190505050611c6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611f75602a913960400191505060405180910390fd5b5b505050565b611d2f846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b85565b50505050565b6060611d448484600085611d4d565b90509392505050565b6060611d5885611572565b611dca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611e1a5780518252602082019150602081019050602083039250611df7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e7c576040519150601f19603f3d011682016040523d82523d6000602084013e611e81565b606091505b50915091508115611e96578092505050611f4b565b600081511115611ea95780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f10578082015181840152602081019050611ef5565b50505050905090810190601f168015611f3d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b27a1c837eb376061e652ed3a25ec102eff4dedcacdb9bfb223b0218e0873c8f64736f6c634300070500330000000000000000000000009077f9e1efe0ea72867ac89046b2a6264cbcaef50000000000000000000000009d23cb25ad23d73e0a723a47b146139d46ab5f91

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101575760003560e01c806378e97925116100c3578063cea019621161007c578063cea0196214610528578063e0febffa1461056a578063f2b05d7614610588578063f3466dfa146105a6578063f7c618c114610629578063f985021a1461065d57610157565b806378e97925146104405780639c511ad41461045e578063a60a04811461047c578063a694fc3a146104be578063a8dc889b146104ec578063c8f33c911461050a57610157565b806343603c431161011557806343603c43146102f25780634e71d92d1461034a5780635fcbd2851461035457806370a082311461038857806376671808146103e057806378cc6cc5146103fe57610157565b80628cc2621461015c5780630700037d146101b45780631607aee71461020c57806318160ddd1461024e5780631b0c04761461026c5780632e17de78146102c4575b600080fd5b61019e6004803603602081101561017257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610667565b6040518082815260200191505060405180910390f35b6101f6600480360360208110156101ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061074e565b6040518082815260200191505060405180910390f35b6102386004803603602081101561022257600080fd5b8101908080359060200190929190505050610766565b6040518082815260200191505060405180910390f35b6102566107c3565b6040518082815260200191505060405180910390f35b6102ae6004803603602081101561028257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107cd565b6040518082815260200191505060405180910390f35b6102f0600480360360208110156102da57600080fd5b81019080803590602001909291905050506107e5565b005b6103346004803603602081101561030857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a90565b6040518082815260200191505060405180910390f35b610352610aa8565b005b61035c610da4565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103ca6004803603602081101561039e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc8565b6040518082815260200191505060405180910390f35b6103e8610e11565b6040518082815260200191505060405180910390f35b61042a6004803603602081101561041457600080fd5b8101908080359060200190929190505050610e21565b6040518082815260200191505060405180910390f35b610448610e8c565b6040518082815260200191505060405180910390f35b610466610e92565b6040518082815260200191505060405180910390f35b6104a86004803603602081101561049257600080fd5b8101908080359060200190929190505050610e98565b6040518082815260200191505060405180910390f35b6104ea600480360360208110156104d457600080fd5b8101908080359060200190929190505050610eff565b005b6104f461113a565b6040518082815260200191505060405180910390f35b6105126111d8565b6040518082815260200191505060405180910390f35b6105546004803603602081101561053e57600080fd5b81019080803590602001909291905050506111de565b6040518082815260200191505060405180910390f35b610572611365565b6040518082815260200191505060405180910390f35b61059061136d565b6040518082815260200191505060405180910390f35b6105ae611373565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105ee5780820151818401526020810190506105d3565b50505050905090810190601f16801561061b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610631611411565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610665611437565b005b6000610747600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610739670de0b6b3a764000061072b610714600760008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461070661113a565b6115bd90919063ffffffff16565b61071d88610dc8565b61160790919063ffffffff16565b61168d90919063ffffffff16565b6116d790919063ffffffff16565b9050919050565b60096020528060005260406000206000915090505481565b6000635fcc1f008211156107b9576107b260016107a4617080610796635fcc1f00876115bd90919063ffffffff16565b61168d90919063ffffffff16565b6116d790919063ffffffff16565b90506107be565b600090505b919050565b6000600154905090565b60086020528060005260406000206000915090505481565b600a54421161085c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b3361086561113a565b6006819055504260058190555061087b81610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000821161097a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f43616e6e6f7420756e7374616b6520300000000000000000000000000000000081525060200191505060405180910390fd5b610982610e11565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43616e6e6f7420756e7374616b6520696e207374616b65642065706f63682e0081525060200191505060405180910390fd5b610a3e8261175f565b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75836040518082815260200191505060405180910390a25050565b60076020528060005260406000206000915090505481565b600a544211610b1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b33610b2861113a565b60068190555042600581905550610b3e81610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610c7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f207265776172647320746f20636c61696d0000000000000000000000000081525060200191505060405180910390fd5b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d523382600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661185d9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241826040518082815260200191505060405180910390a25050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610e1c42610766565b905090565b6000635fcc1f00821015610e3b57635fcc1f009050610e87565b635fcc1f00821415610e6757610e60617080635fcc1f006116d790919063ffffffff16565b9050610e87565b610e84617080610e7684610e98565b6116d790919063ffffffff16565b90505b919050565b600a5481565b61708081565b6000635fcc1f008211610eb157635fcc1f009050610efa565b610ef7610ee4617080610ed66001610ec887610766565b6115bd90919063ffffffff16565b61160790919063ffffffff16565b635fcc1f006116d790919063ffffffff16565b90505b919050565b600a544211610f76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b33610f7f61113a565b60068190555042600581905550610f9581610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008211611094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61109c610e11565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506110e8826118ff565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b6000806111456107c3565b14156111555760065490506111d5565b6111d26111c16111636107c3565b6111b3670de0b6b3a76400006111a561118261117d610e11565b6111de565b611197600554426115bd90919063ffffffff16565b61160790919063ffffffff16565b61160790919063ffffffff16565b61168d90919063ffffffff16565b6006546116d790919063ffffffff16565b90505b90565b60055481565b600080600090506000831161125b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f65706f63682063616e6e6f74206265203000000000000000000000000000000081525060200191505060405180910390fd5b6054831161126e5762b71b009050611305565b60548311801561128057506101508311155b156112915763014997009050611304565b610150831180156112a4575061024c8311155b156112b45762a4cb809050611303565b61024c831180156112c757506103488311155b156112d757625265c09050611302565b610348831180156112ea57506104448311155b156112fa57622932e09050611301565b6214997090505b5b5b5b5b611320670de0b6b3a76400008261160790919063ffffffff16565b9050605483111561134657611341626ebe008261168d90919063ffffffff16565b61135d565b61135c6224ea008261168d90919063ffffffff16565b5b915050919050565b635fcc1f0081565b60065481565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114095780601f106113de57610100808354040283529160200191611409565b820191906000526020600020905b8154815290600101906020018083116113ec57829003601f168201915b505050505081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3361144061113a565b6006819055504260058190555061145681610667565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600654600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a544211611556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f737461727454696d6520686173206e6f74206265656e2072656163686564000081525060200191505060405180910390fd5b61156761156233610dc8565b6107e5565b61156f610aa8565b50565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156115b457506000801b8214155b92505050919050565b60006115ff83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119ff565b905092915050565b60008083141561161a5760009050611687565b600082840290508284828161162b57fe5b0414611682576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611f546021913960400191505060405180910390fd5b809150505b92915050565b60006116cf83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611abf565b905092915050565b600080828401905083811015611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611774816001546115bd90919063ffffffff16565b6001819055506117cc81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115bd90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061185a338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661185d9092919063ffffffff16565b50565b6118fa8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b85565b505050565b611914816001546116d790919063ffffffff16565b60018190555061196c81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116d790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119fc33308360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611c74909392919063ffffffff16565b50565b6000838311158290611aac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a71578082015181840152602081019050611a56565b50505050905090810190601f168015611a9e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290611b6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b30578082015181840152602081019050611b15565b50505050905090810190601f168015611b5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611b7757fe5b049050809150509392505050565b6060611be7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d359092919063ffffffff16565b9050600081511115611c6f57808060200190516020811015611c0857600080fd5b8101908080519060200190929190505050611c6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611f75602a913960400191505060405180910390fd5b5b505050565b611d2f846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611b85565b50505050565b6060611d448484600085611d4d565b90509392505050565b6060611d5885611572565b611dca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611e1a5780518252602082019150602081019050602083039250611df7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e7c576040519150601f19603f3d011682016040523d82523d6000602084013e611e81565b606091505b50915091508115611e96578092505050611f4b565b600081511115611ea95780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f10578082015181840152602081019050611ef5565b50505050905090810190601f168015611f3d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b27a1c837eb376061e652ed3a25ec102eff4dedcacdb9bfb223b0218e0873c8f64736f6c63430007050033

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

0000000000000000000000009077f9e1efe0ea72867ac89046b2a6264cbcaef50000000000000000000000009d23cb25ad23d73e0a723a47b146139d46ab5f91

-----Decoded View---------------
Arg [0] : rewardTokenAddress (address): 0x9077F9e1eFE0eA72867ac89046b2a6264CbcaeF5
Arg [1] : lpTokenAddress (address): 0x9D23cb25aD23D73E0a723a47b146139D46Ab5F91

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009077f9e1efe0ea72867ac89046b2a6264cbcaef5
Arg [1] : 0000000000000000000000009d23cb25ad23d73e0a723a47b146139d46ab5f91


Deployed Bytecode Sourcemap

30373:2676:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27414:212;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24920:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6982:248;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22476:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24863:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29276:319;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24799:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29691:341;;;:::i;:::-;;21859:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;22766:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8455:155;;;:::i;:::-;;;;;;;;;;;;;;;;;;;7813:411;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24971:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6800:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;7360:322;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28882:267;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26809:379;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24719:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32193:851;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6696:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24755:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24656:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24685:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;26545:140;;;:::i;:::-;;27414:212;27468:7;27495:123;27601:7;:16;27609:7;27601:16;;;;;;;;;;;;;;;;27495:101;27591:4;27495:91;27518:67;27553:22;:31;27576:7;27553:31;;;;;;;;;;;;;;;;27518:16;:14;:16::i;:::-;:20;;:67;;;;:::i;:::-;27495:18;27505:7;27495:9;:18::i;:::-;:22;;:91;;;;:::i;:::-;:95;;:101;;;;:::i;:::-;:105;;:123;;;;:::i;:::-;27488:130;;27414:212;;;:::o;24920:42::-;;;;;;;;;;;;;;;;;:::o;6982:248::-;7050:7;6744:10;7074:9;:33;7070:134;;;7131:61;7190:1;7131:54;6839:7;7131:36;6744:10;7131:9;:13;;:36;;;;:::i;:::-;:40;;:54;;;;:::i;:::-;:58;;:61;;;;:::i;:::-;7124:68;;;;7070:134;7221:1;7214:8;;6982:248;;;;:::o;22476:91::-;22520:7;22547:12;;22540:19;;22476:91;:::o;24863:50::-;;;;;;;;;;;;;;;;;:::o;29276:319::-;26272:9;;26254:15;:27;26246:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29341:10:::1;27986:16;:14;:16::i;:::-;27963:20;:39;;;;28030:15;28013:14;:32;;;;28115:15;28122:7;28115:6;:15::i;:::-;28096:7;:16;28104:7;28096:16;;;;;;;;;;;;;;;:34;;;;28175:20;;28141:22;:31;28164:7;28141:31;;;;;;;;;;;;;;;:54;;;;29390:1:::2;29381:6;:10;29373:39;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;29461:14;:12;:14::i;:::-;29431:15;:27;29447:10;29431:27;;;;;;;;;;;;;;;;:44;29423:88;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;29522:21;29536:6;29522:13;:21::i;:::-;29568:10;29559:28;;;29580:6;29559:28;;;;;;;;;;;;;;;;;;26327:1:::1;29276:319:::0;:::o;24799:57::-;;;;;;;;;;;;;;;;;:::o;29691:341::-;26272:9;;26254:15;:27;26246:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29740:10:::1;27986:16;:14;:16::i;:::-;27963:20;:39;;;;28030:15;28013:14;:32;;;;28115:15;28122:7;28115:6;:15::i;:::-;28096:7;:16;28104:7;28096:16;;;;;;;;;;;;;;;:34;;;;28175:20;;28141:22;:31;28164:7;28141:31;;;;;;;;;;;;;;;:54;;;;29793:1:::2;29771:7;:19;29779:10;29771:19;;;;;;;;;;;;;;;;:23;29763:55;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;29829:21;29853:7;:19;29861:10;29853:19;;;;;;;;;;;;;;;;29829:43;;29905:1;29883:7;:19;29891:10;29883:19;;;;;;;;;;;;;;;:23;;;;29917:51;29942:10;29954:13;29917:11;;;;;;;;;;;:24;;;;:51;;;;;:::i;:::-;29998:10;29984:40;;;30010:13;29984:40;;;;;;;;;;;;;;;;;;28206:1;26327::::1;29691:341::o:0;21859:21::-;;;;;;;;;;;;:::o;22766:110::-;22823:7;22850:9;:18;22860:7;22850:18;;;;;;;;;;;;;;;;22843:25;;22766:110;;;:::o;8455:155::-;8500:7;8527:35;8546:15;8527:18;:35::i;:::-;8520:42;;8455:155;:::o;7813:411::-;7888:7;6744:10;7912:9;:33;7908:309;;;6744:10;7962:28;;;;7908:309;6744:10;8012:9;:34;8008:209;;;8070:39;6839:7;6744:10;8070:25;;:39;;;;:::i;:::-;8063:46;;;;8008:209;8149:56;6839:7;8149:38;8177:9;8149:27;:38::i;:::-;:42;;:56;;;;:::i;:::-;8142:63;;7813:411;;;;:::o;24971:48::-;;;;:::o;6800:46::-;6839:7;6800:46;:::o;7360:322::-;7437:7;6744:10;7461:9;:34;7457:218;;6744:10;7512:28;;;;7457:218;7580:83;7606:56;6839:7;7607:36;7641:1;7607:29;7626:9;7607:18;:29::i;:::-;:33;;:36;;;;:::i;:::-;7606:42;;:56;;;;:::i;:::-;6744:10;7580:25;;:83;;;;:::i;:::-;7573:90;;7360:322;;;;:::o;28882:267::-;26272:9;;26254:15;:27;26246:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28945:10:::1;27986:16;:14;:16::i;:::-;27963:20;:39;;;;28030:15;28013:14;:32;;;;28115:15;28122:7;28115:6;:15::i;:::-;28096:7;:16;28104:7;28096:16;;;;;;;;;;;;;;;:34;;;;28175:20;;28141:22;:31;28164:7;28141:31;;;;;;;;;;;;;;;:54;;;;28994:1:::2;28985:6;:10;28977:37;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;29055:14;:12;:14::i;:::-;29025:15;:27;29041:10;29025:27;;;;;;;;;;;;;;;:44;;;;29080:19;29092:6;29080:11;:19::i;:::-;29122:10;29115:26;;;29134:6;29115:26;;;;;;;;;;;;;;;;;;26327:1:::1;28882:267:::0;:::o;26809:379::-;26856:7;26897:1;26880:13;:11;:13::i;:::-;:18;26876:78;;;26922:20;;26915:27;;;;26876:78;27026:154;27051:114;27151:13;:11;:13::i;:::-;27051:95;27141:4;27051:85;27109:26;27120:14;:12;:14::i;:::-;27109:10;:26::i;:::-;27051:35;27071:14;;27051:15;:19;;:35;;;;:::i;:::-;:39;;:85;;;;:::i;:::-;:89;;:95;;;;:::i;:::-;:99;;:114;;;;:::i;:::-;27026:20;;:24;;:154;;;;:::i;:::-;27019:161;;26809:379;;:::o;24719:29::-;;;;:::o;32193:851::-;32258:7;32278:21;32302:1;32278:25;;32330:1;32322:5;:9;32314:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32377:2;32368:5;:11;32364:532;;32412:8;32396:24;;32364:532;;;32457:2;32449:5;:10;:26;;;;;32472:3;32463:5;:12;;32449:26;32445:451;;;32508:8;32492:24;;32445:451;;;32555:3;32547:5;:11;:27;;;;;32571:3;32562:5;:12;;32547:27;32543:353;;;32607:8;32591:24;;32543:353;;;32654:3;32646:5;:11;:27;;;;;32670:3;32661:5;:12;;32646:27;32642:254;;;32706:7;32690:23;;32642:254;;;32751:3;32743:5;:11;:28;;;;;32767:4;32758:5;:13;;32743:28;32739:157;;;32804:7;32788:23;;32739:157;;;32868:7;32852:23;;32739:157;32642:254;32543:353;32445:451;32364:532;32924:23;32942:4;32924:13;:17;;:23;;;;:::i;:::-;32908:39;;32975:2;32966:5;:11;;32965:71;;33010:26;33028:7;33010:13;:17;;:26;;;;:::i;:::-;32965:71;;;32981:26;32999:7;32981:13;:17;;:26;;;;:::i;:::-;32965:71;32958:78;;;32193:851;;;:::o;6696:58::-;6744:10;6696:58;:::o;24755:35::-;;;;:::o;24656:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24685:25::-;;;;;;;;;;;;;:::o;26545:140::-;26595:10;27986:16;:14;:16::i;:::-;27963:20;:39;;;;28030:15;28013:14;:32;;;;28115:15;28122:7;28115:6;:15::i;:::-;28096:7;:16;28104:7;28096:16;;;;;;;;;;;;;;;:34;;;;28175:20;;28141:22;:31;28164:7;28141:31;;;;;;;;;;;;;;;:54;;;;26272:9:::1;;26254:15;:27;26246:70;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;26629:30:::2;26637:21;26647:10;26637:9;:21::i;:::-;26629:7;:30::i;:::-;26670:7;:5;:7::i;:::-;26545:140:::0;:::o;12180:619::-;12240:4;12502:16;12529:19;12551:66;12529:88;;;;12720:7;12708:20;12696:32;;12760:11;12748:8;:23;;:42;;;;;12787:3;12775:15;;:8;:15;;12748:42;12740:51;;;;12180:619;;;:::o;2338:136::-;2396:7;2423:43;2427:1;2430;2423:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2416:50;;2338:136;;;;:::o;3228:471::-;3286:7;3536:1;3531;:6;3527:47;;;3561:1;3554:8;;;;3527:47;3586:9;3602:1;3598;:5;3586:17;;3631:1;3626;3622;:5;;;;;;:10;3614:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3690:1;3683:8;;;3228:471;;;;;:::o;4175:132::-;4233:7;4260:39;4264:1;4267;4260:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;4253:46;;4175:132;;;;:::o;1874:181::-;1932:7;1952:9;1968:1;1964;:5;1952:17;;1993:1;1988;:6;;1980:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2046:1;2039:8;;;1874:181;;;;:::o;23806:225::-;23880:24;23897:6;23880:12;;:16;;:24;;;;:::i;:::-;23865:12;:39;;;;23939:33;23965:6;23939:9;:21;23949:10;23939:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23915:9;:21;23925:10;23915:21;;;;;;;;;;;;;;;:57;;;;23983:40;24004:10;24016:6;23983:7;;;;;;;;;;:20;;;;:40;;;;;:::i;:::-;23806:225;:::o;18312:177::-;18395:86;18415:5;18445:23;;;18470:2;18474:5;18422:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18395:19;:86::i;:::-;18312:177;;;:::o;23208:242::-;23280:24;23297:6;23280:12;;:16;;:24;;;;:::i;:::-;23265:12;:39;;;;23339:33;23365:6;23339:9;:21;23349:10;23339:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23315:9;:21;23325:10;23315:21;;;;;;;;;;;;;;;:57;;;;23383:59;23408:10;23428:4;23435:6;23383:7;;;;;;;;;;:24;;;;:59;;;;;;:::i;:::-;23208:242;:::o;2777:192::-;2863:7;2896:1;2891;:6;;2899:12;2883:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2923:9;2939:1;2935;:5;2923:17;;2960:1;2953:8;;;2777:192;;;;;:::o;4803:278::-;4889:7;4921:1;4917;:5;4924:12;4909:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4948:9;4964:1;4960;:5;;;;;;4948:17;;5072:1;5065:8;;;4803:278;;;;;:::o;20617:761::-;21041:23;21067:69;21095:4;21067:69;;;;;;;;;;;;;;;;;21075:5;21067:27;;;;:69;;;;;:::i;:::-;21041:95;;21171:1;21151:10;:17;:21;21147:224;;;21293:10;21282:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21274:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21147:224;20617:761;;;:::o;18497:205::-;18598:96;18618:5;18648:27;;;18677:4;18683:2;18687:5;18625:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18598:19;:96::i;:::-;18497:205;;;;:::o;15295:196::-;15398:12;15430:53;15453:6;15461:4;15467:1;15470:12;15430:22;:53::i;:::-;15423:60;;15295:196;;;;;:::o;16672:979::-;16802:12;16835:18;16846:6;16835:10;:18::i;:::-;16827:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16961:12;16975:23;17002:6;:11;;17022:8;17033:4;17002:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16960:78;;;;17053:7;17049:595;;;17084:10;17077:17;;;;;;17049:595;17218:1;17198:10;:17;:21;17194:439;;;17461:10;17455:17;17522:15;17509:10;17505:2;17501:19;17494:44;17409:148;17604:12;17597:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16672:979;;;;;;;:::o

Swarm Source

ipfs://b27a1c837eb376061e652ed3a25ec102eff4dedcacdb9bfb223b0218e0873c8f

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.