ETH Price: $3,464.79 (-5.72%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim195642462024-04-01 23:27:35280 days ago1712014055IN
0xEbb95E5b...0A940CFa4
0 ETH0.0044535430.31827126
Claim195642102024-04-01 23:20:23280 days ago1712013623IN
0xEbb95E5b...0A940CFa4
0 ETH0.0036739525.01110193
Claim195642052024-04-01 23:19:23280 days ago1712013563IN
0xEbb95E5b...0A940CFa4
0 ETH0.0033236522.62639774
Claim195641902024-04-01 23:16:23280 days ago1712013383IN
0xEbb95E5b...0A940CFa4
0 ETH0.0039972330.34855082
Claim195090762024-03-25 4:16:47288 days ago1711340207IN
0xEbb95E5b...0A940CFa4
0 ETH0.0019342415.67483318
Claim194942932024-03-23 2:21:23290 days ago1711160483IN
0xEbb95E5b...0A940CFa4
0 ETH0.0027320718.14960346
Claim194942612024-03-23 2:14:59290 days ago1711160099IN
0xEbb95E5b...0A940CFa4
0 ETH0.0027564417.19651602
Claim194813012024-03-21 6:36:59292 days ago1711003019IN
0xEbb95E5b...0A940CFa4
0 ETH0.005015233
Claim194462802024-03-16 8:29:11297 days ago1710577751IN
0xEbb95E5b...0A940CFa4
0 ETH0.0043141730.74065223
Claim194316452024-03-14 7:03:47299 days ago1710399827IN
0xEbb95E5b...0A940CFa4
0 ETH0.0068829549.04449508
Claim194316372024-03-14 7:02:11299 days ago1710399731IN
0xEbb95E5b...0A940CFa4
0 ETH0.0063870445.51091989
Claim193838142024-03-07 14:12:47306 days ago1709820767IN
0xEbb95E5b...0A940CFa4
0 ETH0.0453671294.93632373
Claim193297782024-02-29 1:02:59313 days ago1709168579IN
0xEbb95E5b...0A940CFa4
0 ETH0.0081324958.51260854
Claim192795952024-02-22 0:27:35320 days ago1708561655IN
0xEbb95E5b...0A940CFa4
0 ETH0.0046031136.37041179
Claim192587902024-02-19 2:21:23323 days ago1708309283IN
0xEbb95E5b...0A940CFa4
0 ETH0.0094786420.72889937
Claim192462292024-02-17 7:54:35325 days ago1708156475IN
0xEbb95E5b...0A940CFa4
0 ETH0.0019743616
Claim192453222024-02-17 4:51:35325 days ago1708145495IN
0xEbb95E5b...0A940CFa4
0 ETH0.0031966817.60272209
Claim192229242024-02-14 1:24:47328 days ago1707873887IN
0xEbb95E5b...0A940CFa4
0 ETH0.0024026917.15917258
Claim192174002024-02-13 6:46:47329 days ago1707806807IN
0xEbb95E5b...0A940CFa4
0 ETH0.0024757417.68088806
Claim191679532024-02-06 8:16:35336 days ago1707207395IN
0xEbb95E5b...0A940CFa4
0 ETH0.006711444.29764867
Claim191674592024-02-06 6:36:23336 days ago1707201383IN
0xEbb95E5b...0A940CFa4
0 ETH0.0041534330.79444676
Claim191402902024-02-02 11:03:35340 days ago1706871815IN
0xEbb95E5b...0A940CFa4
0 ETH0.0055494321.34190953
Claim191289082024-01-31 20:41:35341 days ago1706733695IN
0xEbb95E5b...0A940CFa4
0 ETH0.0052033823.31276271
Claim191168562024-01-30 4:12:23343 days ago1706587943IN
0xEbb95E5b...0A940CFa4
0 ETH0.0018185514.73729728
Claim191161652024-01-30 1:51:59343 days ago1706579519IN
0xEbb95E5b...0A940CFa4
0 ETH0.0030894918.72772549
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:
PartnerRewardsFarm

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 11 : AnkrFarm.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.18;

import "communal/SafeERC20.sol";
import "local/interfaces/IvdUSH.sol";
import "communal/ReentrancyGuard.sol";
import {Ownable} from "openzeppelin/access/Ownable.sol";
import "openzeppelin/utils/math/SignedSafeMath.sol";


// ================================================================
// Allows vdUSH stakers to claim farm rewards from partner tokens
// Users can claim their rewards at any time
// No staking needed, just looks up staked balances from vdUSH farm
// No user deposits held in this contract!
// Author: unshETH team (github.com/unsheth)
// Heavily inspired by StakingRewards, MasterChef

interface IGovFarm {
    function getAllUsers() external view returns (address[] memory);
    function totalSupplyMultiplier() external view returns (uint);
    function isInMatrix(address user) external view returns (bool);
}

contract PartnerRewardsFarm is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    IvdUSH public constant vdUsh = IvdUSH(0xd027Ef82dB658805C9Ba8053196cD6ED1Dd407E4);
    IERC20 public immutable rewardToken;

    IGovFarm public govFarm; //govFarm contract
    uint public startTime; //start time of the farm
    uint public rewardPerSec;

    mapping(address => uint) public lastClaimTimestamp;
    mapping(address => uint) public lastClaimVdUshBalance;
    mapping(address => uint) public lastClaimTotalSupply;
    mapping(address => bool) public isBlocked; //if a user is blocked from claiming rewards

    struct Point {
        int128 bias;
        int128 slope; // # -dweight / dt
        uint ts;
        uint blk; // block
    }
    uint internal constant WEEK = 1 weeks;

    event RewardsClaimed(address indexed _user, uint _rewardClaimed);
    event RewardPerSecUpdated(uint _rewardPerSec);
    event GovFarmUpdated(address _govFarmAddress);
    event BlockListUpdated(address indexed _user, bool _isBlocked);
    event FarmStarted(uint _rewardPerSec, uint _startTime);

    //Constructor
    constructor(address _govFarmAddress, address _rewardToken) {
        rewardToken = IERC20(_rewardToken);
        govFarm = IGovFarm(_govFarmAddress);
    }

    /**
     * @dev Calculate user's earned USH and vdUSH rewards since last claim.
     * User earned rewards are proportional to their share of total vdUSH at the time of claim.
     * @param user The address of the user entering the matrix.
     */
    function earned(address user) public view returns (uint) {
        require(govFarm.isInMatrix(user), "User not in matrix");
        require(startTime!= 0 && block.timestamp > startTime, "Farm not started");
        require(!isBlocked[user], "User is blocked from claiming rewards");

        uint lastClaimTimeStamp = lastClaimTimestamp[user] == 0 ? startTime : lastClaimTimestamp[user];

        uint secsSinceLastClaim = block.timestamp - lastClaimTimeStamp;
        uint lastEpoch = vdUsh.user_point_epoch(user);
        uint lastEpochTimestamp = vdUsh.user_point_history__ts(user, lastEpoch);

        uint userVdUsh;
        uint totalVdUsh;

        userVdUsh = lastClaimVdUshBalance[user];
        totalVdUsh = lastClaimTotalSupply[user];

        //sampling:
        //fyi we start at i=1, bc i=0 is the lastClaim which is already stored
        for(uint i = 1; i < 53;) {
            uint timestamp = lastClaimTimeStamp + i * 1 weeks;
            //if 1 wk after last claim is after current block timestamp, break
            if(timestamp > block.timestamp) {
                userVdUsh += vdUsh.balanceOf(user);
                totalVdUsh += vdUsh.totalSupply();
                break;
            }
            //round down to nearest week if needed
            if(timestamp > lastEpochTimestamp) {
                timestamp = lastEpochTimestamp;
            }

            userVdUsh += vdUsh.balanceOfAtT(user, timestamp);
            //calculate totalSupplyAtT internally due to versioning issue in ve-contracts
            totalVdUsh += _totalSupplyAtT(timestamp);

            unchecked{ ++i; }
        }

        uint averageVdUshShare = userVdUsh * 1e18 / totalVdUsh;
        uint claimable = averageVdUshShare * secsSinceLastClaim * rewardPerSec / 1e18 * govFarm.totalSupplyMultiplier() / 1e18;

        return claimable;
    }


    /*
    ============================================================================
    Calculations to get correct total supply at historical point T
    ============================================================================
    */

    function _get_point_history(uint _epoch) internal view returns (Point memory) {
        (int128 bias, int128 slope, uint ts, uint blk) = vdUsh.point_history(_epoch);
        return Point(bias, slope, ts, blk);
    }

    function _totalSupplyAtT(uint t) internal view returns (uint) {
        uint _epoch = vdUsh.epoch();
        Point memory last_point = _get_point_history(_epoch);
        return _supply_at(last_point, t);
    }

    function _supply_at(Point memory point, uint t) internal view returns (uint) {
        Point memory last_point = point;
        uint t_i = (last_point.ts / WEEK) * WEEK;
        for (uint i = 0; i < 255; ++i) {
            t_i += WEEK;
            int128 d_slope = 0;
            if (t_i > t) {
                t_i = t;
            } else {
                d_slope = vdUsh.slope_changes(t_i);
            }
            last_point.bias -= last_point.slope * int128(int(t_i) - int(last_point.ts));
            if (t_i == t) {
                break;
            }
            last_point.slope += d_slope;
            last_point.ts = t_i;
        }

        if (last_point.bias < 0) {
            last_point.bias = 0;
        }
        return uint(uint128(last_point.bias));
    }

    /*
    ============================================================================
    Claim
    ============================================================================
    */

    function claim(address user) external nonReentrant {
        uint claimable = earned(user);
        require(claimable > 0, "Nothing to claim");

        lastClaimTimestamp[user] = block.timestamp;
        lastClaimVdUshBalance[user] = vdUsh.balanceOf(user);
        lastClaimTotalSupply[user] = vdUsh.totalSupply();
        rewardToken.safeTransfer(user, claimable);
        emit RewardsClaimed(user, claimable);
    }

    //view funcs
    function getAllUsers() public view returns (address[] memory) {
        return govFarm.getAllUsers();
    }

    function getVdUshTotalSupplyInFarm() public view returns (uint) {
        uint totalVdUsh;
        address[] memory users = getAllUsers();
        for(uint i = 0; i < users.length;) {
            uint vdUshBalance = isBlocked[users[i]] ? 0 : vdUsh.balanceOf(users[i]);
            totalVdUsh += vdUshBalance;
            unchecked{ ++i; }
        }
        return totalVdUsh;
    }

    //owner funcs
    function startFarm(uint _rewardPerSec) external onlyOwner {
        require(startTime == 0, "Farm already started");
        rewardPerSec = _rewardPerSec;
        startTime = block.timestamp;
        emit FarmStarted(_rewardPerSec, startTime);
    }

    function setRewardPerSec(uint _rewardPerSec) external onlyOwner {
        rewardPerSec = _rewardPerSec;
        emit RewardPerSecUpdated(_rewardPerSec);
    }

    function updateGovFarm(address _govFarmAddress) external onlyOwner {
        govFarm = IGovFarm(_govFarmAddress);
        emit GovFarmUpdated(_govFarmAddress);
    }

    function updateBlockList(address _user, bool _isBlocked) external onlyOwner {
        isBlocked[_user] = _isBlocked;
        emit BlockListUpdated(_user, _isBlocked);
    }

    //emergency funcs
    function recoverTokens(uint amount, address dst) external onlyOwner {
        rewardToken.safeTransfer(dst, amount);
    }

}

File 2 of 11 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11 <0.9.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 3 of 11 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

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

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

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

import "./Context.sol";
import "./SafeMath.sol";

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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 5 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.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 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 7 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.11;

/**
 * @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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 8 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.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);
    }
}

File 9 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 11 : SignedSafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SignedSafeMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SignedSafeMath {
    /**
     * @dev Returns the multiplication of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        return a * b;
    }

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

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

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

File 11 of 11 : IvdUSH.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;


interface IvdUSH {

    function totalSupply() external view returns(uint256);
    function balanceOf(address account) external view returns(uint256);
    function epoch() external view returns(uint256);

    function locked(address account) external view returns(uint256);
    function deposit_for(address _addr, uint _valueA, uint _valueB, uint _valueC) external;
    function approve(address spender, uint256 amount) external returns (bool);

    function balanceOfAtT(address account, uint256 ts) external view returns(uint256);

    function point_history(uint256 _epoch) external view returns(int128 bias, int128 slope, uint ts, uint blk);
    function user_point_epoch(address account) external view returns(uint256);
    function user_point_history__ts(address _addr, uint _idx) external view returns (uint256);
    function slope_changes(uint256 time) external view returns(int128);

}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": [
    "@prb/math/=lib/prb-math/src/",
    "@prb/test/=lib/prb-test/src/",
    "Common/=lib/Common/",
    "ERC20/=lib/ERC20/",
    "Governance/=lib/Governance/",
    "Math/=lib/Math/",
    "Staking/=lib/Staking/",
    "Utils/=lib/Utils/",
    "communal/=lib/communal/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "layerzerolabs/=lib/solidity-examples/",
    "local/=src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin/",
    "prb-math/=lib/prb-math/src/",
    "prb-test/=lib/prb-math/lib/prb-test/src/",
    "solidity-examples/=lib/solidity-examples/contracts/",
    "solmate/=lib/solmate/src/",
    "src/=lib/prb-math/src/"
  ],
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_govFarmAddress","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"bool","name":"_isBlocked","type":"bool"}],"name":"BlockListUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_rewardPerSec","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"FarmStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_govFarmAddress","type":"address"}],"name":"GovFarmUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_rewardPerSec","type":"uint256"}],"name":"RewardPerSecUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_rewardClaimed","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllUsers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVdUshTotalSupplyInFarm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"govFarm","outputs":[{"internalType":"contract IGovFarm","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimVdUshBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"dst","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSec","type":"uint256"}],"name":"setRewardPerSec","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSec","type":"uint256"}],"name":"startFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bool","name":"_isBlocked","type":"bool"}],"name":"updateBlockList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_govFarmAddress","type":"address"}],"name":"updateGovFarm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vdUsh","outputs":[{"internalType":"contract IvdUSH","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a034620000e257601f6200204038819003918201601f19168301916001600160401b03831184841017620000e7578084926040948552833981010312620000e2576200005a60206200005283620000fd565b9201620000fd565b60008054336001600160a01b0319808316821784556040519590946001600160a01b0394919385939192908416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600180551660805216906002541617600255611f2d908162000113823960805181818161042d015281816105430152610c4c0152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620000e25756fe6080604052600436101561001257600080fd5b60003560e01c80628cc2621461016657806304f42440146101615780631e83409a1461015c5780632ec917371461015757806335f82a05146101525780634c1e220e1461014d5780634f41e95d1461014857806366e44d58146101435780636b9189ea1461013e578063715018a614610139578063775403581461013457806378e979251461012f5780637d0a211e1461012a5780638da5cb5b14610125578063adcfa77314610120578063bd9d518b1461011b578063cac090a614610116578063e2842d7914610111578063f2fde38b1461010c578063f7c618c1146101075763fbac39511461010257600080fd5b610c70565b610c1f565b610b04565b610a92565b610935565b6108ea565b61089e565b61086a565b610836565b610818565b6107e9565b610767565b6106ac565b61061b565b6105fd565b6105b2565b610567565b610515565b610278565b6101c7565b61018e565b73ffffffffffffffffffffffffffffffffffffffff81160361018957565b600080fd5b346101895760206003193601126101895760206101b56004356101b08161016b565b611053565b604051908152f35b8015150361018957565b34610189576040600319360112610189576004356101e48161016b565b7fa8e65dc25b25ed9c00c1693b81f3d26f78c8d0e952946e7cb7f0be3524d83b7c602073ffffffffffffffffffffffffffffffffffffffff60243593610229856101bd565b610231610cc0565b169283600052600882526040600020901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8316179055604051908152a2005b3461018957602080600319360112610189576004356102968161016b565b6002600154146104b75760026001556102ae81611053565b916102ba831515611a75565b426102e58373ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b556040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316600482015273d027ef82db658805c9ba8053196cd6ed1dd407e492908281602481875afa93841561049557600494849260009161049a575b506103868473ffffffffffffffffffffffffffffffffffffffff166000526006602052604060002090565b55604051948580927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa8015610495577ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9373ffffffffffffffffffffffffffffffffffffffff93600092610468575b50506104258273ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b5561045184827f0000000000000000000000000000000000000000000000000000000000000000611ada565b6040519384521691602090a261046660018055565b005b6104879250803d1061048e575b61047f8183610dab565b810190610fa6565b38806103f9565b503d610475565b610e04565b6104b19150833d851161048e5761047f8183610dab565b3861035b565b606482604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b34610189576040600319360112610189576104666024356105358161016b565b61053d610cc0565b600435907f0000000000000000000000000000000000000000000000000000000000000000611ada565b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff6004356105998161016b565b1660005260066020526020604060002054604051908152f35b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff6004356105e48161016b565b1660005260076020526020604060002054604051908152f35b34610189576000600319360112610189576020600454604051908152f35b34610189576020600319360112610189577f73152c454129037a8fa7c81d6ebc3c8ed40904d99edf91eebd6931f3ffb54d8e602073ffffffffffffffffffffffffffffffffffffffff6004356106708161016b565b610678610cc0565b16807fffffffffffffffffffffffff00000000000000000000000000000000000000006002541617600255604051908152a1005b34610189576020600319360112610189576004356106c8610cc0565b600354610709576040817f23e98f15e8ad1cbf93f3c8dff768a842f212818622668343bcd63137f297119192600455426003558151908152426020820152a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661726d20616c726561647920737461727465640000000000000000000000006044820152fd5b34610189576000806003193601126107e657610781610cc0565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b3461018957600060031936011261018957602060405173d027ef82db658805c9ba8053196cd6ed1dd407e48152f35b34610189576000600319360112610189576020600354604051908152f35b3461018957600060031936011261018957602073ffffffffffffffffffffffffffffffffffffffff60025416604051908152f35b3461018957600060031936011261018957602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b34610189576020600319360112610189577faf3a50bee1480ebf8501115f1bd714a3d8d8642a2c8c1ae2085fb9af7680ba0c60206004356108dd610cc0565b80600455604051908152a1005b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff60043561091c8161016b565b1660005260056020526020604060002054604051908152f35b34610189576000806003193601126107e65780610950611db5565b9080925b8251841015610a87576109b76109b061098a6109708787611eb4565b5173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b5460ff1690565b156109d1576109c9600191839061100d565b930192610954565b610a356109e16109708686611eb4565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152916020918290849081906024820190565b038173d027ef82db658805c9ba8053196cd6ed1dd407e45afa8015610495576001936109c9938692610a6a575b50509061100d565b610a809250803d1061048e5761047f8183610dab565b3880610a62565b604051908152602090f35b3461018957600060031936011261018957610aab611db5565b604051809160208083018184528251809152816040850193019160005b828110610ad757505050500390f35b835173ffffffffffffffffffffffffffffffffffffffff1685528695509381019392810192600101610ac8565b3461018957602060031936011261018957600435610b218161016b565b610b29610cc0565b73ffffffffffffffffffffffffffffffffffffffff8091168015610b9b576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b3461018957600060031936011261018957602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff600435610ca28161016b565b166000526008602052602060ff604060002054166040519015158152f35b73ffffffffffffffffffffffffffffffffffffffff600054163303610ce157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff821117610d8a57604052565b610d3f565b6040810190811067ffffffffffffffff821117610d8a57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610d8a57604052565b908160209103126101895751610e01816101bd565b90565b6040513d6000823e3d90fd5b15610e1757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f55736572206e6f7420696e206d617472697800000000000000000000000000006044820152fd5b15610e7c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4661726d206e6f742073746172746564000000000000000000000000000000006044820152fd5b15610ee157565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f5573657220697320626c6f636b65642066726f6d20636c61696d696e6720726560448201527f77617264730000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908203918211610fa157565b610f65565b90816020910312610189575190565b9062093a8091828102928184041490151715610fa157565b90670de0b6b3a764000091828102928184041490151715610fa157565b81810292918115918404141715610fa157565b9062093a808201809211610fa157565b91908201809211610fa157565b8115611024570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b61108e61107560025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040517f2b18877000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048083019190915292602092918381602481865afa8015610495576110f9916000916115fc575b50610e10565b600354801515806115f3575b61110e90610e75565b61114a6111456111416109b08573ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b1590565b610eda565b6111748273ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b546115c2575b6111848142610f94565b91604051917f010ae757000000000000000000000000000000000000000000000000000000008352826111d68389830191909173ffffffffffffffffffffffffffffffffffffffff6020820193169052565b03868473d027ef82db658805c9ba8053196cd6ed1dd407e49281845afa9384156104955761125f9488916000916115a5575b50604051809681927fda020a18000000000000000000000000000000000000000000000000000000008352878d84016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b0381845afa93841561049557600094611586575b5090928694936112a38473ffffffffffffffffffffffffffffffffffffffff166000526006602052604060002090565b54926112cf8573ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b54946001935b60358510611384575b505050505061131a926112ff61130c936112fa61130494610fcd565b61101a565b610fea565b865490610fea565b670de0b6b3a7640000900490565b91604051948580927f196a64020000000000000000000000000000000000000000000000000000000082525afa90811561049557610e019361130c93600093611365575b5050610fea565b61137c929350803d1061048e5761047f8183610dab565b90388061135e565b9193969750919361139d61139788610fb5565b8661100d565b958a428811611473578c848911611469575b604080517fd07b705f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8816928101928352602083018b90529493929185918291010381895afa9182156104955761142e61143a93611434928f9660019760009361144a575b505061100d565b98611629565b9061100d565b96019391899796959493916112d5565b611461929350803d1061048e5761047f8183610dab565b908f80611427565b93975087936113af565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9095168d86019081529598509096509294509284915081906020010381875afa91821561049557889288926114eb9260009261156e575b5061100d565b93604051928380927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa938415610495576112ff61131a946112fa6115438a9861130c976113049760009261154f575061100d565b958497508295506112de565b6115679192508b3d8d1161048e5761047f8183610dab565b90386114e5565b611567919250843d861161048e5761047f8183610dab565b61159e919450873d891161048e5761047f8183610dab565b9238611273565b6115bc9150823d841161048e5761047f8183610dab565b38611208565b506115ed8173ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b5461117a565b50428110611105565b61161c9150853d8711611622575b6116148183610dab565b810190610dec565b386110f3565b503d61160a565b604051907f900cf0cf00000000000000000000000000000000000000000000000000000000825273d027ef82db658805c9ba8053196cd6ed1dd407e491602081600481865afa8015610495576116df93608092600092611768575b506000606060405161169581610d6e565b828152826020820152826040820152015260405180809681947fd1febfb9000000000000000000000000000000000000000000000000000000008352600483019190602083019252565b03915afa91821561049557610e0192600091828391849361172e575b5061171f9061171561170b611788565b958690600f0b9052565b600f0b6020850152565b604083015260608201526118d4565b91505061171f9250611757915060803d8111611761575b61174f8183610dab565b8101906117a5565b92939091906116fb565b503d611745565b61178191925060203d811161048e5761047f8183610dab565b9038611684565b6040519061179582610d6e565b565b519081600f0b820361018957565b9190826080910312610189576117ba82611797565b916117c760208201611797565b916060604083015192015190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610fa15760010190565b9081602091031261018957610e0190611797565b81810392916000138015828513169184121617610fa157565b90600f0b90600f0b029081600f0b918203610fa157565b90600f0b90600f0b03906f7fffffffffffffffffffffffffffffff82137fffffffffffffffffffffffffffffffff80000000000000000000000000000000831217610fa157565b90600f0b90600f0b01907fffffffffffffffffffffffffffffffff8000000000000000000000000000000082126f7fffffffffffffffffffffffffffffff831317610fa157565b9060408083016118f06118eb825162093a80900490565b610fb5565b916000925b60ff841061194e575b505050505061193061193082600061192361191d610e019651600f0b90565b600f0b90565b12611945575b51600f0b90565b6fffffffffffffffffffffffffffffffff1690565b60008152611929565b61195790610ffd565b6000939080868111156119e657505084935b60208701906119a76119a06119966119828551600f0b90565b61199061191d8a518c611816565b9061182f565b8a51600f0b611846565b600f0b8952565b8686146119df57816119ca6119d1926119c56119d9969551600f0b90565b61188d565b600f0b9052565b8484526117d5565b926118f5565b50506118fe565b83517f7119748400000000000000000000000000000000000000000000000000000000815260048101919091529094906020808260248173d027ef82db658805c9ba8053196cd6ed1dd407e45afa9283156104955792611a48575b5050611969565b611a679250803d10611a6e575b611a5f8183610dab565b810190611802565b3880611a41565b503d611a55565b15611a7c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602080830191825273ffffffffffffffffffffffffffffffffffffffff948516602484015260448084019690965294825290929091611b3e606485610dab565b169060405192611b4d84610d8f565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15611bbe57611b99939260009283809351925af1611b93611ca7565b90611d05565b80519081611ba657505050565b8261179593611bb9938301019101610dec565b611c1c565b606485604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b15611c2357565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d15611d00573d9067ffffffffffffffff8211610d8a5760405191611cf460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610dab565b82523d6000602084013e565b606090565b90919015611d11575090565b815115611d215750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b848110611d9e575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b818101830151868201604401528593508201611d5d565b73ffffffffffffffffffffffffffffffffffffffff6002541660405180917fe2842d7900000000000000000000000000000000000000000000000000000000825281600460009485935afa918215610495578092611e1257505090565b9091503d8082843e611e248184610dab565b820160209182848303126107e657835167ffffffffffffffff94858211611eb0570182601f82011215611eac578051948511610d8a578460051b9160405195611e6f86850188610dab565b865284808701938301019384116107e657508301905b828210611e93575050505090565b8380918351611ea18161016b565b815201910190611e85565b5080fd5b8280fd5b8051821015611ec85760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212208bb1f745926281a43162b83e7001ad61e4244ddfd9e8a8c22c3bd1677684d85a64736f6c63430008120033000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c80628cc2621461016657806304f42440146101615780631e83409a1461015c5780632ec917371461015757806335f82a05146101525780634c1e220e1461014d5780634f41e95d1461014857806366e44d58146101435780636b9189ea1461013e578063715018a614610139578063775403581461013457806378e979251461012f5780637d0a211e1461012a5780638da5cb5b14610125578063adcfa77314610120578063bd9d518b1461011b578063cac090a614610116578063e2842d7914610111578063f2fde38b1461010c578063f7c618c1146101075763fbac39511461010257600080fd5b610c70565b610c1f565b610b04565b610a92565b610935565b6108ea565b61089e565b61086a565b610836565b610818565b6107e9565b610767565b6106ac565b61061b565b6105fd565b6105b2565b610567565b610515565b610278565b6101c7565b61018e565b73ffffffffffffffffffffffffffffffffffffffff81160361018957565b600080fd5b346101895760206003193601126101895760206101b56004356101b08161016b565b611053565b604051908152f35b8015150361018957565b34610189576040600319360112610189576004356101e48161016b565b7fa8e65dc25b25ed9c00c1693b81f3d26f78c8d0e952946e7cb7f0be3524d83b7c602073ffffffffffffffffffffffffffffffffffffffff60243593610229856101bd565b610231610cc0565b169283600052600882526040600020901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff8316179055604051908152a2005b3461018957602080600319360112610189576004356102968161016b565b6002600154146104b75760026001556102ae81611053565b916102ba831515611a75565b426102e58373ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b556040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316600482015273d027ef82db658805c9ba8053196cd6ed1dd407e492908281602481875afa93841561049557600494849260009161049a575b506103868473ffffffffffffffffffffffffffffffffffffffff166000526006602052604060002090565b55604051948580927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa8015610495577ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe9373ffffffffffffffffffffffffffffffffffffffff93600092610468575b50506104258273ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b5561045184827f0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4611ada565b6040519384521691602090a261046660018055565b005b6104879250803d1061048e575b61047f8183610dab565b810190610fa6565b38806103f9565b503d610475565b610e04565b6104b19150833d851161048e5761047f8183610dab565b3861035b565b606482604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b34610189576040600319360112610189576104666024356105358161016b565b61053d610cc0565b600435907f0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4611ada565b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff6004356105998161016b565b1660005260066020526020604060002054604051908152f35b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff6004356105e48161016b565b1660005260076020526020604060002054604051908152f35b34610189576000600319360112610189576020600454604051908152f35b34610189576020600319360112610189577f73152c454129037a8fa7c81d6ebc3c8ed40904d99edf91eebd6931f3ffb54d8e602073ffffffffffffffffffffffffffffffffffffffff6004356106708161016b565b610678610cc0565b16807fffffffffffffffffffffffff00000000000000000000000000000000000000006002541617600255604051908152a1005b34610189576020600319360112610189576004356106c8610cc0565b600354610709576040817f23e98f15e8ad1cbf93f3c8dff768a842f212818622668343bcd63137f297119192600455426003558151908152426020820152a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4661726d20616c726561647920737461727465640000000000000000000000006044820152fd5b34610189576000806003193601126107e657610781610cc0565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b3461018957600060031936011261018957602060405173d027ef82db658805c9ba8053196cd6ed1dd407e48152f35b34610189576000600319360112610189576020600354604051908152f35b3461018957600060031936011261018957602073ffffffffffffffffffffffffffffffffffffffff60025416604051908152f35b3461018957600060031936011261018957602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b34610189576020600319360112610189577faf3a50bee1480ebf8501115f1bd714a3d8d8642a2c8c1ae2085fb9af7680ba0c60206004356108dd610cc0565b80600455604051908152a1005b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff60043561091c8161016b565b1660005260056020526020604060002054604051908152f35b34610189576000806003193601126107e65780610950611db5565b9080925b8251841015610a87576109b76109b061098a6109708787611eb4565b5173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b5460ff1690565b156109d1576109c9600191839061100d565b930192610954565b610a356109e16109708686611eb4565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152916020918290849081906024820190565b038173d027ef82db658805c9ba8053196cd6ed1dd407e45afa8015610495576001936109c9938692610a6a575b50509061100d565b610a809250803d1061048e5761047f8183610dab565b3880610a62565b604051908152602090f35b3461018957600060031936011261018957610aab611db5565b604051809160208083018184528251809152816040850193019160005b828110610ad757505050500390f35b835173ffffffffffffffffffffffffffffffffffffffff1685528695509381019392810192600101610ac8565b3461018957602060031936011261018957600435610b218161016b565b610b29610cc0565b73ffffffffffffffffffffffffffffffffffffffff8091168015610b9b576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b3461018957600060031936011261018957602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4168152f35b346101895760206003193601126101895773ffffffffffffffffffffffffffffffffffffffff600435610ca28161016b565b166000526008602052602060ff604060002054166040519015158152f35b73ffffffffffffffffffffffffffffffffffffffff600054163303610ce157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff821117610d8a57604052565b610d3f565b6040810190811067ffffffffffffffff821117610d8a57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610d8a57604052565b908160209103126101895751610e01816101bd565b90565b6040513d6000823e3d90fd5b15610e1757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f55736572206e6f7420696e206d617472697800000000000000000000000000006044820152fd5b15610e7c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4661726d206e6f742073746172746564000000000000000000000000000000006044820152fd5b15610ee157565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f5573657220697320626c6f636b65642066726f6d20636c61696d696e6720726560448201527f77617264730000000000000000000000000000000000000000000000000000006064820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b91908203918211610fa157565b610f65565b90816020910312610189575190565b9062093a8091828102928184041490151715610fa157565b90670de0b6b3a764000091828102928184041490151715610fa157565b81810292918115918404141715610fa157565b9062093a808201809211610fa157565b91908201809211610fa157565b8115611024570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b61108e61107560025473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b6040517f2b18877000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048083019190915292602092918381602481865afa8015610495576110f9916000916115fc575b50610e10565b600354801515806115f3575b61110e90610e75565b61114a6111456111416109b08573ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b1590565b610eda565b6111748273ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b546115c2575b6111848142610f94565b91604051917f010ae757000000000000000000000000000000000000000000000000000000008352826111d68389830191909173ffffffffffffffffffffffffffffffffffffffff6020820193169052565b03868473d027ef82db658805c9ba8053196cd6ed1dd407e49281845afa9384156104955761125f9488916000916115a5575b50604051809681927fda020a18000000000000000000000000000000000000000000000000000000008352878d84016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b0381845afa93841561049557600094611586575b5090928694936112a38473ffffffffffffffffffffffffffffffffffffffff166000526006602052604060002090565b54926112cf8573ffffffffffffffffffffffffffffffffffffffff166000526007602052604060002090565b54946001935b60358510611384575b505050505061131a926112ff61130c936112fa61130494610fcd565b61101a565b610fea565b865490610fea565b670de0b6b3a7640000900490565b91604051948580927f196a64020000000000000000000000000000000000000000000000000000000082525afa90811561049557610e019361130c93600093611365575b5050610fea565b61137c929350803d1061048e5761047f8183610dab565b90388061135e565b9193969750919361139d61139788610fb5565b8661100d565b958a428811611473578c848911611469575b604080517fd07b705f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8816928101928352602083018b90529493929185918291010381895afa9182156104955761142e61143a93611434928f9660019760009361144a575b505061100d565b98611629565b9061100d565b96019391899796959493916112d5565b611461929350803d1061048e5761047f8183610dab565b908f80611427565b93975087936113af565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9095168d86019081529598509096509294509284915081906020010381875afa91821561049557889288926114eb9260009261156e575b5061100d565b93604051928380927f18160ddd0000000000000000000000000000000000000000000000000000000082525afa938415610495576112ff61131a946112fa6115438a9861130c976113049760009261154f575061100d565b958497508295506112de565b6115679192508b3d8d1161048e5761047f8183610dab565b90386114e5565b611567919250843d861161048e5761047f8183610dab565b61159e919450873d891161048e5761047f8183610dab565b9238611273565b6115bc9150823d841161048e5761047f8183610dab565b38611208565b506115ed8173ffffffffffffffffffffffffffffffffffffffff166000526005602052604060002090565b5461117a565b50428110611105565b61161c9150853d8711611622575b6116148183610dab565b810190610dec565b386110f3565b503d61160a565b604051907f900cf0cf00000000000000000000000000000000000000000000000000000000825273d027ef82db658805c9ba8053196cd6ed1dd407e491602081600481865afa8015610495576116df93608092600092611768575b506000606060405161169581610d6e565b828152826020820152826040820152015260405180809681947fd1febfb9000000000000000000000000000000000000000000000000000000008352600483019190602083019252565b03915afa91821561049557610e0192600091828391849361172e575b5061171f9061171561170b611788565b958690600f0b9052565b600f0b6020850152565b604083015260608201526118d4565b91505061171f9250611757915060803d8111611761575b61174f8183610dab565b8101906117a5565b92939091906116fb565b503d611745565b61178191925060203d811161048e5761047f8183610dab565b9038611684565b6040519061179582610d6e565b565b519081600f0b820361018957565b9190826080910312610189576117ba82611797565b916117c760208201611797565b916060604083015192015190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610fa15760010190565b9081602091031261018957610e0190611797565b81810392916000138015828513169184121617610fa157565b90600f0b90600f0b029081600f0b918203610fa157565b90600f0b90600f0b03906f7fffffffffffffffffffffffffffffff82137fffffffffffffffffffffffffffffffff80000000000000000000000000000000831217610fa157565b90600f0b90600f0b01907fffffffffffffffffffffffffffffffff8000000000000000000000000000000082126f7fffffffffffffffffffffffffffffff831317610fa157565b9060408083016118f06118eb825162093a80900490565b610fb5565b916000925b60ff841061194e575b505050505061193061193082600061192361191d610e019651600f0b90565b600f0b90565b12611945575b51600f0b90565b6fffffffffffffffffffffffffffffffff1690565b60008152611929565b61195790610ffd565b6000939080868111156119e657505084935b60208701906119a76119a06119966119828551600f0b90565b61199061191d8a518c611816565b9061182f565b8a51600f0b611846565b600f0b8952565b8686146119df57816119ca6119d1926119c56119d9969551600f0b90565b61188d565b600f0b9052565b8484526117d5565b926118f5565b50506118fe565b83517f7119748400000000000000000000000000000000000000000000000000000000815260048101919091529094906020808260248173d027ef82db658805c9ba8053196cd6ed1dd407e45afa9283156104955792611a48575b5050611969565b611a679250803d10611a6e575b611a5f8183610dab565b810190611802565b3880611a41565b503d611a55565b15611a7c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f7468696e6720746f20636c61696d000000000000000000000000000000006044820152fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602080830191825273ffffffffffffffffffffffffffffffffffffffff948516602484015260448084019690965294825290929091611b3e606485610dab565b169060405192611b4d84610d8f565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15611bbe57611b99939260009283809351925af1611b93611ca7565b90611d05565b80519081611ba657505050565b8261179593611bb9938301019101610dec565b611c1c565b606485604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b15611c2357565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b3d15611d00573d9067ffffffffffffffff8211610d8a5760405191611cf460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610dab565b82523d6000602084013e565b606090565b90919015611d11575090565b815115611d215750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b848110611d9e575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b818101830151868201604401528593508201611d5d565b73ffffffffffffffffffffffffffffffffffffffff6002541660405180917fe2842d7900000000000000000000000000000000000000000000000000000000825281600460009485935afa918215610495578092611e1257505090565b9091503d8082843e611e248184610dab565b820160209182848303126107e657835167ffffffffffffffff94858211611eb0570182601f82011215611eac578051948511610d8a578460051b9160405195611e6f86850188610dab565b865284808701938301019384116107e657508301905b828210611e93575050505090565b8380918351611ea18161016b565b815201910190611e85565b5080fd5b8280fd5b8051821015611ec85760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212208bb1f745926281a43162b83e7001ad61e4244ddfd9e8a8c22c3bd1677684d85a64736f6c63430008120033

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

000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4

-----Decoded View---------------
Arg [0] : _govFarmAddress (address): 0xe6297A3f7A7eC264CA8e293f927D86e532b5Da9A
Arg [1] : _rewardToken (address): 0x8290333ceF9e6D528dD5618Fb97a76f268f3EDD4

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e6297a3f7a7ec264ca8e293f927d86e532b5da9a
Arg [1] : 0000000000000000000000008290333cef9e6d528dd5618fb97a76f268f3edd4


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.