ETH Price: $2,104.06 (-14.09%)

Contract

0xc7b10D3B08CEB05d8ff58a3c781225D9a72078Ae
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VeSDLRewards

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : VeSDLRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-4.4.0/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-4.4.0/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts-4.4.0/utils/math/Math.sol";
import "../../interfaces/IVotingEscrow.sol";

/** @title VeSDLRewards
    @notice Gauge like contract that simulates veSDL stake.
 */

contract VeSDLRewards {
    using SafeERC20 for IERC20;

    IERC20 public rewardToken; // immutable are breaking coverage software should be added back after.
    IVotingEscrow public veToken; // immutable
    uint256 public constant DURATION = 7 days;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public queuedRewards = 0;
    uint256 public currentRewards = 0;
    uint256 public historicalRewards = 0;
    address public gov;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;
    // whitelisted addresses have right to claim and lock into veSDL on anothers behalf
    mapping(address => bool) public whitelist;

    event RewardAdded(uint256 reward);
    event Donate(uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event UpdatedGov(address gov);
    event UpdatedWhitelist(address recipient, bool isWhitelisted);

    constructor(
        address veToken_,
        address rewardToken_,
        address gov_
    ) {
        veToken = IVotingEscrow(veToken_);
        rewardToken = IERC20(rewardToken_);
        gov = gov_;
    }

    modifier _updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();

        if (account != address(0)) {
            rewards[account] = _earnedReward(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    /**
     *  @return timestamp until rewards are distributed
     */
    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    /** @notice reward per token deposited
     *  @dev gives the total amount of rewards distributed since inception of the pool per vault token
     *  @return rewardPerToken
     */
    function rewardPerToken() public view returns (uint256) {
        uint256 supply = veToken.totalSupply();
        if (supply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored +
            (((lastTimeRewardApplicable() - lastUpdateTime) *
                rewardRate *
                1e18) / supply);
    }

    function _earnedReward(address account) internal view returns (uint256) {
        return
            (veToken.balanceOf(account) *
                (rewardPerToken() - userRewardPerTokenPaid[account])) /
            1e18 +
            rewards[account];
    }

    /** @notice earning for an account
     *  @return amount of tokens earned
     */
    function earned(address account) external view returns (uint256) {
        return _earnedReward(account);
    }

    /** @notice use to update rewards on veSDL balance changes.
        @dev called by veSDL
     *  @return true
     */
    function updateReward(address _account)
        external
        _updateReward(_account)
        returns (bool)
    {
        require(msg.sender == address(veToken), "!authorized");

        return true;
    }

    /**
     * @notice
     *  Get rewards for an account
     * @dev rewards are transfer to _account
     * @param _account to claim rewards for
     * @param _lock should it lock rewards into veSDL
     * @return true
     */
    function getRewardFor(address _account, bool _lock)
        external
        returns (bool)
    {
        _getReward(
            _account,
            (whitelist[msg.sender] || msg.sender == _account) ? _lock : false
        );
        return true;
    }

    /**
     * @notice
     *  Get rewards
     * @param _lock should it lock rewards into veSDL
     * @return true
     */
    function getReward(bool _lock) external returns (bool) {
        _getReward(msg.sender, _lock);
        return true;
    }

    /**
     * @notice
     *  Get rewards
     * @return true
     */
    function getReward() external returns (bool) {
        _getReward(msg.sender, false);
        return true;
    }

    function _getReward(address _account, bool _lock)
        internal
        _updateReward(_account)
    {
        uint256 reward = rewards[_account];
        if (reward == 0) return;
        rewards[_account] = 0;

        if (_lock) {
            SafeERC20.safeApprove(rewardToken, address(veToken), reward);
            veToken.deposit_for(_account, reward);
        } else {
            SafeERC20.safeTransfer(rewardToken, _account, reward);
        }

        emit RewardPaid(_account, reward);
    }

    /**
     * @notice
     *  Donate tokens to distribute as rewards
     * @dev Do not trigger rewardRate recalculation
     * @param _amount token to donate
     * @return true
     */
    function donate(uint256 _amount) external returns (bool) {
        require(_amount != 0, "==0");
        IERC20(rewardToken).safeTransferFrom(
            msg.sender,
            address(this),
            _amount
        );
        queuedRewards = queuedRewards + _amount;
        emit Donate(_amount);
        return true;
    }

    /**
     * @notice
     * Add new rewards to be distributed over a week
     * @dev Trigger rewardRate recalculation using _amount and queuedRewards
     * @param _amount token to add to rewards
     * @return true
     */
    function queueNewRewards(uint256 _amount) external returns (bool) {
        require(_amount != 0, "==0");
        IERC20(rewardToken).safeTransferFrom(
            msg.sender,
            address(this),
            _amount
        );

        _amount = _amount + queuedRewards;
        _notifyRewardAmount(_amount);
        queuedRewards = 0;

        return true;
    }

    function _notifyRewardAmount(uint256 reward)
        internal
        _updateReward(address(0))
    {
        historicalRewards = historicalRewards + reward;
        if (block.timestamp >= periodFinish) {
            rewardRate = reward / DURATION;
        } else {
            uint256 remaining = periodFinish - block.timestamp;
            uint256 leftover = remaining * rewardRate;
            reward = reward + leftover;
            rewardRate = reward / DURATION;
        }
        currentRewards = reward;
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + DURATION;
        emit RewardAdded(reward);
    }

    /**
     * @notice
     * set gov
     * @dev Can be called by gov
     * @param _gov new gov
     * @return true
     */
    function setGov(address _gov) external returns (bool) {
        require(msg.sender == gov, "!authorized");

        require(_gov != address(0), "0 address");
        gov = _gov;
        emit UpdatedGov(_gov);
        return true;
    }

    /**
     * @notice
     * add to whitelist
     * @dev Can be called by gov
     * @param _addr  address to whitelist
     * @param _isWhitelist whether to whitelist or blacklist
     */
    function addToWhitelist(address _addr, bool _isWhitelist) external {
        require(msg.sender == gov, "!authorized");

        require(_addr != address(0), "0 address");
        whitelist[_addr] = _isWhitelist;
        emit UpdatedWhitelist(_addr, _isWhitelist);
    }

    function sweep(address _token) external returns (bool) {
        require(msg.sender == gov, "!authorized");

        SafeERC20.safeTransfer(
            IERC20(_token),
            gov,
            IERC20(_token).balanceOf(address(this))
        );
        return true;
    }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/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 Address for address;

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

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

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

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

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

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

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

File 4 of 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 6 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/Math.sol)

pragma solidity ^0.8.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.
        return (a & b) + (a ^ b) / 2;
    }

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

File 6 of 6 : IVotingEscrow.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-4.4.0/token/ERC20/IERC20.sol";

interface IVotingEscrow is IERC20 {
    struct LockedBalance {
        int128 amount;
        uint256 end;
    }

    function balanceOf(address) external view override returns (uint256);

    function totalSupply() external view override returns (uint256);

    function locked__end(address) external view returns (uint256);

    function locked(address) external view returns (LockedBalance memory);

    function deposit_for(address, uint256) external;

    function is_unlocked() external view returns (bool);
}

Settings
{
  "evmVersion": "berlin",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"veToken_","type":"address"},{"internalType":"address","name":"rewardToken_","type":"address"},{"internalType":"address","name":"gov_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Donate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gov","type":"address"}],"name":"UpdatedGov","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"UpdatedWhitelist","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_isWhitelist","type":"bool"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"donate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_lock","type":"bool"}],"name":"getReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"getRewardFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"historicalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"queueNewRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"queuedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veToken","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600060025560006003556000600655600060075560006008553480156200002a57600080fd5b50604051620018a2380380620018a28339810160408190526200004d91620000ad565b600180546001600160a01b039485166001600160a01b031991821617909155600080549385169382169390931790925560098054919093169116179055620000f7565b80516001600160a01b0381168114620000a857600080fd5b919050565b600080600060608486031215620000c357600080fd5b620000ce8462000090565b9250620000de6020850162000090565b9150620000ee6040850162000090565b90509250925092565b61179b80620001076000396000f3fe608060405234801561001057600080fd5b50600436106101ad5760003560e01c80638b876347116100ee578063cd3daf9d11610097578063ebe2b12b11610071578063ebe2b12b1461037c578063f14faf6f14610385578063f579513f14610398578063f7c618c1146103ab57600080fd5b8063cd3daf9d14610358578063cfad57a214610360578063df136d651461037357600080fd5b8063a4698feb116100c8578063a4698feb14610327578063bc93233f1461033a578063c8f33c911461034f57600080fd5b80638b876347146102db578063901a7d53146102fb5780639b19251a1461030457600080fd5b80633b92eb231161015b578063632447c911610135578063632447c9146102ae57806363d38c3b146102c15780637b0a47ee146102ca57806380faa57d146102d357600080fd5b80633b92eb23146102735780633d18b91214610293578063590a41f51461029b57600080fd5b806312d43a511161018c57806312d43a511461021b5780631be0528914610260578063262d3d6d1461026a57600080fd5b80628cc262146101b257806301681a62146101d85780630700037d146101fb575b600080fd5b6101c56101c0366004611527565b6103cb565b6040519081526020015b60405180910390f35b6101eb6101e6366004611527565b6103dc565b60405190151581526020016101cf565b6101c5610209366004611527565b600b6020526000908152604090205481565b60095461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101cf565b6101c562093a8081565b6101c560085481565b60015461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b6101eb610502565b6101eb6102a93660046115b3565b610515565b6101eb6102bc366004611527565b6105ad565b6101c560065481565b6101c560035481565b6101c5610694565b6101c56102e9366004611527565b600a6020526000908152604090205481565b6101c560075481565b6101eb610312366004611527565b600c6020526000908152604090205460ff1681565b6101eb610335366004611579565b6106a7565b61034d610348366004611542565b6106b3565b005b6101c560045481565b6101c561080c565b6101eb61036e366004611527565b610910565b6101c560055481565b6101c560025481565b6101eb6103933660046115b3565b610a5c565b6101eb6103a6366004611542565b610b11565b60005461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b60006103d682610b5b565b92915050565b60095460009073ffffffffffffffffffffffffffffffffffffffff16331461044b5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a656400000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6009546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104fa91849173ffffffffffffffffffffffffffffffffffffffff918216918316906370a082319060240160206040518083038186803b1580156104bd57600080fd5b505afa1580156104d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f591906115cc565b610c69565b506001919050565b600061050f336000610d42565b50600190565b6000816105645760405162461bcd60e51b815260206004820152600360248201527f3d3d3000000000000000000000000000000000000000000000000000000000006044820152606401610442565b6000546105899073ffffffffffffffffffffffffffffffffffffffff16333085610f49565b6006546105969083611652565b91506105a182610fad565b50506000600655600190565b6000816105b861080c565b6005556105c3610694565b60045573ffffffffffffffffffffffffffffffffffffffff811615610624576105eb81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b60015473ffffffffffffffffffffffffffffffffffffffff16331461068b5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b50600192915050565b60006106a2426002546110e1565b905090565b60006104fa3383610d42565b60095473ffffffffffffffffffffffffffffffffffffffff16331461071a5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff821661077d5760405162461bcd60e51b815260206004820152600960248201527f30206164647265737300000000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600c602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515159081179091558251938452908301527f0cb6419711fbc14c120b7eb5e02b897bb91a3ab45c8c53575792b9baa3e174e191015b60405180910390a15050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087757600080fd5b505afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af91906115cc565b9050806108be57505060055490565b806003546004546108cd610694565b6108d791906116e2565b6108e191906116a5565b6108f390670de0b6b3a76400006116a5565b6108fd919061166a565b60055461090a9190611652565b91505090565b60095460009073ffffffffffffffffffffffffffffffffffffffff16331461097a5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff82166109dd5760405162461bcd60e51b815260206004820152600960248201527f30206164647265737300000000000000000000000000000000000000000000006044820152606401610442565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556040519081527f8c1e80ae98bcf45b0da9a05005fcdfc1986381446154762a690eca07d17ab1e6906020015b60405180910390a1506001919050565b600081610aab5760405162461bcd60e51b815260206004820152600360248201527f3d3d3000000000000000000000000000000000000000000000000000000000006044820152606401610442565b600054610ad09073ffffffffffffffffffffffffffffffffffffffff16333085610f49565b81600654610ade9190611652565b6006556040518281527f33ac262747c8397a2c737ef15aa625b857fa57c6987e46fe8590677c9a3b7a2e90602001610a4c565b336000908152600c602052604081205461068b90849060ff1680610b4a57503373ffffffffffffffffffffffffffffffffffffffff8616145b610b55576000610d42565b83610d42565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b6020908152604080832054600a909252822054670de0b6b3a764000090610b9e61080c565b610ba891906116e2565b6001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152909116906370a082319060240160206040518083038186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4b91906115cc565b610c5591906116a5565b610c5f919061166a565b6103d69190611652565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d3d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110f9565b505050565b81610d4b61080c565b600555610d56610694565b60045573ffffffffffffffffffffffffffffffffffffffff811615610db757610d7e81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090205480610de85750505050565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600b60205260408120558215610ecf57600054600154610e3e9173ffffffffffffffffffffffffffffffffffffffff9081169116836111eb565b6001546040517f3a46273e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820184905290911690633a46273e90604401600060405180830381600087803b158015610eb257600080fd5b505af1158015610ec6573d6000803e3d6000fd5b50505050610ef3565b600054610ef39073ffffffffffffffffffffffffffffffffffffffff168583610c69565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610f3b91815260200190565b60405180910390a250505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa79085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610cbb565b50505050565b6000610fb761080c565b600555610fc2610694565b60045573ffffffffffffffffffffffffffffffffffffffff81161561102357610fea81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b816008546110319190611652565b60085560025442106110525761104a62093a808361166a565b600355611095565b60004260025461106291906116e2565b905060006003548261107491906116a5565b90506110808185611652565b935061108f62093a808561166a565b60035550505b60078290554260048190556110ae9062093a8090611652565b6002556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d90602001610800565b60008183106110f057816110f2565b825b9392505050565b600061115b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113629092919063ffffffff16565b805190915015610d3d57808060200190518101906111799190611596565b610d3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610442565b80158061129a57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561126057600080fd5b505afa158015611274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129891906115cc565b155b61130c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610442565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d3d9084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401610cbb565b60606113718484600085611379565b949350505050565b6060824710156113f15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610442565b843b61143f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610442565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161146891906115e5565b60006040518083038185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b50915091506114ba8282866114c5565b979650505050505050565b606083156114d45750816110f2565b8251156114e45782518084602001fd5b8160405162461bcd60e51b81526004016104429190611601565b803573ffffffffffffffffffffffffffffffffffffffff8116811461152257600080fd5b919050565b60006020828403121561153957600080fd5b6110f2826114fe565b6000806040838503121561155557600080fd5b61155e836114fe565b9150602083013561156e81611754565b809150509250929050565b60006020828403121561158b57600080fd5b81356110f281611754565b6000602082840312156115a857600080fd5b81516110f281611754565b6000602082840312156115c557600080fd5b5035919050565b6000602082840312156115de57600080fd5b5051919050565b600082516115f78184602087016116f9565b9190910192915050565b60208152600082518060208401526116208160408501602087016116f9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561166557611665611725565b500190565b6000826116a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116dd576116dd611725565b500290565b6000828210156116f4576116f4611725565b500390565b60005b838110156117145781810151838201526020016116fc565b83811115610fa75750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b801515811461176257600080fd5b5056fea2646970667358221220df5ed0b534c7649232a4d6ffcdde8b8ffbc0d98f539850c4d33b969370cebf3764736f6c63430008060033000000000000000000000000d2751cdbed54b87777e805be36670d7aeae73bb2000000000000000000000000f1dc500fde233a4055e25e5bbf516372bc4f68710000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ad5760003560e01c80638b876347116100ee578063cd3daf9d11610097578063ebe2b12b11610071578063ebe2b12b1461037c578063f14faf6f14610385578063f579513f14610398578063f7c618c1146103ab57600080fd5b8063cd3daf9d14610358578063cfad57a214610360578063df136d651461037357600080fd5b8063a4698feb116100c8578063a4698feb14610327578063bc93233f1461033a578063c8f33c911461034f57600080fd5b80638b876347146102db578063901a7d53146102fb5780639b19251a1461030457600080fd5b80633b92eb231161015b578063632447c911610135578063632447c9146102ae57806363d38c3b146102c15780637b0a47ee146102ca57806380faa57d146102d357600080fd5b80633b92eb23146102735780633d18b91214610293578063590a41f51461029b57600080fd5b806312d43a511161018c57806312d43a511461021b5780631be0528914610260578063262d3d6d1461026a57600080fd5b80628cc262146101b257806301681a62146101d85780630700037d146101fb575b600080fd5b6101c56101c0366004611527565b6103cb565b6040519081526020015b60405180910390f35b6101eb6101e6366004611527565b6103dc565b60405190151581526020016101cf565b6101c5610209366004611527565b600b6020526000908152604090205481565b60095461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101cf565b6101c562093a8081565b6101c560085481565b60015461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b6101eb610502565b6101eb6102a93660046115b3565b610515565b6101eb6102bc366004611527565b6105ad565b6101c560065481565b6101c560035481565b6101c5610694565b6101c56102e9366004611527565b600a6020526000908152604090205481565b6101c560075481565b6101eb610312366004611527565b600c6020526000908152604090205460ff1681565b6101eb610335366004611579565b6106a7565b61034d610348366004611542565b6106b3565b005b6101c560045481565b6101c561080c565b6101eb61036e366004611527565b610910565b6101c560055481565b6101c560025481565b6101eb6103933660046115b3565b610a5c565b6101eb6103a6366004611542565b610b11565b60005461023b9073ffffffffffffffffffffffffffffffffffffffff1681565b60006103d682610b5b565b92915050565b60095460009073ffffffffffffffffffffffffffffffffffffffff16331461044b5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a656400000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6009546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526104fa91849173ffffffffffffffffffffffffffffffffffffffff918216918316906370a082319060240160206040518083038186803b1580156104bd57600080fd5b505afa1580156104d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f591906115cc565b610c69565b506001919050565b600061050f336000610d42565b50600190565b6000816105645760405162461bcd60e51b815260206004820152600360248201527f3d3d3000000000000000000000000000000000000000000000000000000000006044820152606401610442565b6000546105899073ffffffffffffffffffffffffffffffffffffffff16333085610f49565b6006546105969083611652565b91506105a182610fad565b50506000600655600190565b6000816105b861080c565b6005556105c3610694565b60045573ffffffffffffffffffffffffffffffffffffffff811615610624576105eb81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b60015473ffffffffffffffffffffffffffffffffffffffff16331461068b5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b50600192915050565b60006106a2426002546110e1565b905090565b60006104fa3383610d42565b60095473ffffffffffffffffffffffffffffffffffffffff16331461071a5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff821661077d5760405162461bcd60e51b815260206004820152600960248201527f30206164647265737300000000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600c602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515159081179091558251938452908301527f0cb6419711fbc14c120b7eb5e02b897bb91a3ab45c8c53575792b9baa3e174e191015b60405180910390a15050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087757600080fd5b505afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af91906115cc565b9050806108be57505060055490565b806003546004546108cd610694565b6108d791906116e2565b6108e191906116a5565b6108f390670de0b6b3a76400006116a5565b6108fd919061166a565b60055461090a9190611652565b91505090565b60095460009073ffffffffffffffffffffffffffffffffffffffff16331461097a5760405162461bcd60e51b815260206004820152600b60248201527f21617574686f72697a65640000000000000000000000000000000000000000006044820152606401610442565b73ffffffffffffffffffffffffffffffffffffffff82166109dd5760405162461bcd60e51b815260206004820152600960248201527f30206164647265737300000000000000000000000000000000000000000000006044820152606401610442565b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556040519081527f8c1e80ae98bcf45b0da9a05005fcdfc1986381446154762a690eca07d17ab1e6906020015b60405180910390a1506001919050565b600081610aab5760405162461bcd60e51b815260206004820152600360248201527f3d3d3000000000000000000000000000000000000000000000000000000000006044820152606401610442565b600054610ad09073ffffffffffffffffffffffffffffffffffffffff16333085610f49565b81600654610ade9190611652565b6006556040518281527f33ac262747c8397a2c737ef15aa625b857fa57c6987e46fe8590677c9a3b7a2e90602001610a4c565b336000908152600c602052604081205461068b90849060ff1680610b4a57503373ffffffffffffffffffffffffffffffffffffffff8616145b610b55576000610d42565b83610d42565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b6020908152604080832054600a909252822054670de0b6b3a764000090610b9e61080c565b610ba891906116e2565b6001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152909116906370a082319060240160206040518083038186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4b91906115cc565b610c5591906116a5565b610c5f919061166a565b6103d69190611652565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d3d9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110f9565b505050565b81610d4b61080c565b600555610d56610694565b60045573ffffffffffffffffffffffffffffffffffffffff811615610db757610d7e81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090205480610de85750505050565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600b60205260408120558215610ecf57600054600154610e3e9173ffffffffffffffffffffffffffffffffffffffff9081169116836111eb565b6001546040517f3a46273e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820184905290911690633a46273e90604401600060405180830381600087803b158015610eb257600080fd5b505af1158015610ec6573d6000803e3d6000fd5b50505050610ef3565b600054610ef39073ffffffffffffffffffffffffffffffffffffffff168583610c69565b8373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610f3b91815260200190565b60405180910390a250505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610fa79085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610cbb565b50505050565b6000610fb761080c565b600555610fc2610694565b60045573ffffffffffffffffffffffffffffffffffffffff81161561102357610fea81610b5b565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020908152604080832093909355600554600a909152919020555b816008546110319190611652565b60085560025442106110525761104a62093a808361166a565b600355611095565b60004260025461106291906116e2565b905060006003548261107491906116a5565b90506110808185611652565b935061108f62093a808561166a565b60035550505b60078290554260048190556110ae9062093a8090611652565b6002556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d90602001610800565b60008183106110f057816110f2565b825b9392505050565b600061115b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113629092919063ffffffff16565b805190915015610d3d57808060200190518101906111799190611596565b610d3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610442565b80158061129a57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561126057600080fd5b505afa158015611274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129891906115cc565b155b61130c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610442565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610d3d9084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401610cbb565b60606113718484600085611379565b949350505050565b6060824710156113f15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610442565b843b61143f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610442565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161146891906115e5565b60006040518083038185875af1925050503d80600081146114a5576040519150601f19603f3d011682016040523d82523d6000602084013e6114aa565b606091505b50915091506114ba8282866114c5565b979650505050505050565b606083156114d45750816110f2565b8251156114e45782518084602001fd5b8160405162461bcd60e51b81526004016104429190611601565b803573ffffffffffffffffffffffffffffffffffffffff8116811461152257600080fd5b919050565b60006020828403121561153957600080fd5b6110f2826114fe565b6000806040838503121561155557600080fd5b61155e836114fe565b9150602083013561156e81611754565b809150509250929050565b60006020828403121561158b57600080fd5b81356110f281611754565b6000602082840312156115a857600080fd5b81516110f281611754565b6000602082840312156115c557600080fd5b5035919050565b6000602082840312156115de57600080fd5b5051919050565b600082516115f78184602087016116f9565b9190910192915050565b60208152600082518060208401526116208160408501602087016116f9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561166557611665611725565b500190565b6000826116a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116dd576116dd611725565b500290565b6000828210156116f4576116f4611725565b500390565b60005b838110156117145781810151838201526020016116fc565b83811115610fa75750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b801515811461176257600080fd5b5056fea2646970667358221220df5ed0b534c7649232a4d6ffcdde8b8ffbc0d98f539850c4d33b969370cebf3764736f6c63430008060033

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

000000000000000000000000d2751cdbed54b87777e805be36670d7aeae73bb2000000000000000000000000f1dc500fde233a4055e25e5bbf516372bc4f68710000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae

-----Decoded View---------------
Arg [0] : veToken_ (address): 0xD2751CdBED54B87777E805be36670D7aeAe73bb2
Arg [1] : rewardToken_ (address): 0xf1Dc500FdE233A4055e25e5BbF516372BC4F6871
Arg [2] : gov_ (address): 0x3F8E527aF4e0c6e763e8f368AC679c44C45626aE

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d2751cdbed54b87777e805be36670d7aeae73bb2
Arg [1] : 000000000000000000000000f1dc500fde233a4055e25e5bbf516372bc4f6871
Arg [2] : 0000000000000000000000003f8e527af4e0c6e763e8f368ac679c44c45626ae


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

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.