Contract 0x7b35229e2451220237f3121464713F3446E740F1

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4b6eef64406e40454da6090514441195b606042101e056b5b33561c00aee5c9cSet Operator254089912023-01-25 20:07:145 days 4 hrs ago0xcd7874f7430f9f62129c3fef1bc8cb8ef7bad224 IN  0x7b35229e2451220237f3121464713f3446e740f10 AVAX0.0013866630
0xc503d98cc913910a9d25b7ddf54836773fd46d70cd5886ec3ee9a526574e8ed30x61012060254089762023-01-25 20:06:445 days 4 hrs ago0xcd7874f7430f9f62129c3fef1bc8cb8ef7bad224 IN  Create: Bribe0 AVAX0.0377612730
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bribe

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : Bribe.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.14;

import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@rari-capital/solmate/src/utils/SafeTransferLib.sol';
import '@rari-capital/solmate/src/tokens/ERC20.sol';
import '../interfaces/IBribe.sol';

interface IVoter {
    // lpToken => weight, equals to sum of votes for a LP token
    function weights(address _lpToken) external view returns (uint256);

    // user address => lpToken => votes
    function votes(address _user, address _lpToken) external view returns (uint256);
}

/**
 * Simple bribe per sec. Distribute bribe rewards to voters
 * fork from SimpleRewarder.
 * Bribe.onVote->updatePool() is a bit different from SimpleRewarder.
 * Here we reduce the original total amount of share
 */
contract Bribe is IBribe, Ownable, ReentrancyGuard {
    using SafeTransferLib for ERC20;

    uint256 public immutable ACC_TOKEN_PRECISION;
    ERC20 public immutable override rewardToken;
    address public immutable lpToken;
    bool public immutable isNative;
    address public immutable voter;

    /// @notice Info of each voter user.
    /// `amount` LP token amount the user has provided.
    /// `rewardDebt` The amount of YOUR_TOKEN entitled to the user.
    struct UserInfo {
        uint128 amount; // 20.18 fixed point
        uint128 rewardDebt; // 26.12 fixed point
        uint256 unpaidRewards;
    }

    /// @notice Info of each voter poolInfo.
    /// `accTokenPerShare` Amount of YOUR_TOKEN each LP token is worth.
    /// `lastRewardTimestamp` The last timestamp YOUR_TOKEN was rewarded to the poolInfo.
    struct PoolInfo {
        uint128 accTokenPerShare; // 20.18 fixed point
        uint48 lastRewardTimestamp;
    }

    /// @notice address of the operator
    /// @dev operator is able to set emission rate
    address public operator;

    /// @notice Info of the poolInfo.
    PoolInfo public poolInfo;
    /// @notice Info of each user that stakes LP tokens.
    mapping(address => UserInfo) public userInfo;

    uint256 public tokenPerSec;

    event OnReward(address indexed user, uint256 amount);
    event RewardRateUpdated(uint256 oldRate, uint256 newRate);

    modifier onlyVoter() {
        require(msg.sender == address(voter), 'onlyVoter: only MasterPlatypus can call this function');
        _;
    }

    modifier onlyOperatorOrOwner() {
        require(msg.sender == owner() || msg.sender == operator, 'onlyOperatorOrOwner');
        _;
    }

    constructor(
        address _voter,
        address _lpToken,
        ERC20 _rewardToken,
        uint256 _tokenPerSec,
        bool _isNative
    ) {
        require(Address.isContract(address(_rewardToken)), 'constructor: reward token must be a valid contract');
        require(Address.isContract(address(_lpToken)), 'constructor: LP token must be a valid contract');
        require(Address.isContract(address(_voter)), 'constructor: Voter must be a valid contract');
        require(_rewardToken.decimals() <= 30, 'constructor: too much decimal for _rewardToken');

        ACC_TOKEN_PRECISION = 1e30 / (10**_rewardToken.decimals());

        voter = _voter;
        lpToken = _lpToken;
        rewardToken = _rewardToken;
        tokenPerSec = _tokenPerSec;
        isNative = _isNative;
        poolInfo = PoolInfo({lastRewardTimestamp: uint48(block.timestamp), accTokenPerShare: 0});
    }

    /// @notice Set operator address
    function setOperator(address _operator) external onlyOwner {
        operator = _operator;
    }

    /// @notice Update reward variables of the given poolInfo.
    function updatePool() public {
        PoolInfo memory pool = poolInfo;

        if (block.timestamp > pool.lastRewardTimestamp) {
            uint256 totalShares = _getTotalShare();

            if (totalShares > 0) {
                uint256 timeElapsed = block.timestamp - pool.lastRewardTimestamp;
                uint256 tokenReward = timeElapsed * tokenPerSec;
                pool.accTokenPerShare += toUint128((tokenReward * ACC_TOKEN_PRECISION) / totalShares);
            }

            pool.lastRewardTimestamp = uint48(block.timestamp);
            poolInfo = pool;
        }
    }

    /// @notice Sets the distribution reward rate. This will also update the poolInfo.
    /// @param _tokenPerSec The number of tokens to distribute per second
    function setRewardRate(uint256 _tokenPerSec) external onlyOperatorOrOwner {
        require(_tokenPerSec <= 10000e18, 'reward rate too high'); // in case of accTokenPerShare overflow
        updatePool();

        uint256 oldRate = tokenPerSec;
        tokenPerSec = _tokenPerSec;

        emit RewardRateUpdated(oldRate, _tokenPerSec);
    }

    /// @notice Function called by Voter whenever user update his vote of claim rewards
    /// @notice Allows users to receive bribes
    /// @dev assumes that _getTotalShare() returns the new amount of share
    /// @param _user Address of user
    /// @param _lpAmount Number of vote the user has
    function onVote(
        address _user,
        uint256 _lpAmount,
        uint256 originalTotalVotes
    ) external override onlyVoter nonReentrant returns (uint256) {
        PoolInfo storage pool = poolInfo;
        UserInfo storage user = userInfo[_user];

        // update pool using the original total votes
        if (block.timestamp > pool.lastRewardTimestamp) {
            if (originalTotalVotes > 0) {
                uint256 timeElapsed = block.timestamp - pool.lastRewardTimestamp;
                uint256 tokenReward = timeElapsed * tokenPerSec;
                pool.accTokenPerShare += toUint128((tokenReward * ACC_TOKEN_PRECISION) / originalTotalVotes);
            }

            pool.lastRewardTimestamp = uint48(block.timestamp);
        }

        uint256 pending;
        uint256 totalSent;
        if (user.amount > 0) {
            pending =
                ((user.amount * uint256(pool.accTokenPerShare)) / ACC_TOKEN_PRECISION) -
                (user.rewardDebt) +
                (user.unpaidRewards);

            if (isNative) {
                uint256 tokenBalance = address(this).balance;
                if (pending > tokenBalance) {
                    (bool success, ) = _user.call{value: tokenBalance}('');
                    totalSent = tokenBalance;
                    require(success, 'Transfer failed');
                    user.unpaidRewards = pending - tokenBalance;
                } else {
                    (bool success, ) = _user.call{value: pending}('');
                    totalSent = pending;
                    require(success, 'Transfer failed');
                    user.unpaidRewards = 0;
                }
            } else {
                uint256 tokenBalance = rewardToken.balanceOf(address(this));
                if (pending > tokenBalance) {
                    rewardToken.safeTransfer(_user, tokenBalance);
                    totalSent = tokenBalance;
                    user.unpaidRewards = pending - tokenBalance;
                } else {
                    rewardToken.safeTransfer(_user, pending);
                    totalSent = pending;
                    user.unpaidRewards = 0;
                }
            }
        }

        user.amount = toUint128(_lpAmount);
        user.rewardDebt = toUint128((user.amount * uint256(pool.accTokenPerShare)) / ACC_TOKEN_PRECISION);
        emit OnReward(_user, totalSent);
        return totalSent;
    }

    /// @notice View function to see pending tokens
    /// @param _user Address of user.
    /// @return pending reward for a given user.
    function pendingTokens(address _user) external view override returns (uint256 pending) {
        PoolInfo memory pool = poolInfo;
        UserInfo storage user = userInfo[_user];

        uint256 accTokenPerShare = pool.accTokenPerShare;
        uint256 totalShares = _getTotalShare();

        if (block.timestamp > pool.lastRewardTimestamp && totalShares != 0) {
            uint256 timeElapsed = block.timestamp - (pool.lastRewardTimestamp);
            uint256 tokenReward = timeElapsed * (tokenPerSec);
            accTokenPerShare = accTokenPerShare + ((tokenReward * (ACC_TOKEN_PRECISION)) / totalShares);
        }

        pending =
            ((user.amount * uint256(accTokenPerShare)) / ACC_TOKEN_PRECISION) -
            (user.rewardDebt) +
            (user.unpaidRewards);
    }

    /// @notice In case rewarder is stopped before emissions finished, this function allows
    /// withdrawal of remaining tokens.
    function emergencyWithdraw() external onlyOwner {
        if (isNative) {
            (bool success, ) = msg.sender.call{value: address(this).balance}('');
            require(success, 'Transfer failed');
        } else {
            rewardToken.safeTransfer(address(msg.sender), rewardToken.balanceOf(address(this)));
        }
    }

    /// @notice avoids loosing funds in case there is any tokens sent to this contract
    function emergencyTokenWithdraw(address token) external onlyOwner {
        // send that balance back to owner
        ERC20(token).safeTransfer(msg.sender, ERC20(token).balanceOf(address(this)));
    }

    /// @notice View function to see balance of reward token.
    function balance() external view returns (uint256) {
        if (isNative) {
            return address(this).balance;
        } else {
            return rewardToken.balanceOf(address(this));
        }
    }

    function _getTotalShare() internal view returns (uint256) {
        return IVoter(voter).weights(lpToken);
    }

    function toUint128(uint256 val) internal pure returns (uint128) {
        if (val > type(uint128).max) revert('uint128 overflow');
        return uint128(val);
    }

    /// @notice payable function needed to receive AVAX
    receive() external payable {}
}

File 2 of 8 : Address.sol
// SPDX-License-Identifier: MIT

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 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and 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 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 8 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

File 6 of 8 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 7 of 8 : IBribe.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@rari-capital/solmate/src/tokens/ERC20.sol';

interface IBribe {
    function onVote(
        address user,
        uint256 newVote,
        uint256 originalTotalVotes
    ) external returns (uint256);

    function pendingTokens(address user) external view returns (uint256 pending);

    function rewardToken() external view returns (ERC20);
}

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"contract ERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_tokenPerSec","type":"uint256"},{"internalType":"bool","name":"_isNative","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OnReward","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":"oldRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RewardRateUpdated","type":"event"},{"inputs":[],"name":"ACC_TOKEN_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"emergencyTokenWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isNative","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_lpAmount","type":"uint256"},{"internalType":"uint256","name":"originalTotalVotes","type":"uint256"}],"name":"onVote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTokens","outputs":[{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolInfo","outputs":[{"internalType":"uint128","name":"accTokenPerShare","type":"uint128"},{"internalType":"uint48","name":"lastRewardTimestamp","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPerSec","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint128","name":"rewardDebt","type":"uint128"},{"internalType":"uint256","name":"unpaidRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040818152346200044c5760a08262001878803803809162000025828562000451565b8339810103126200044c576200003b826200048b565b9160206200004b8183016200048b565b838301516001600160a01b03808216949092918581036200044c57608060608301519201519283151584036200044c5760008054336001600160a01b03198216811783558a5192979091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08884a360018055873b15620003ef5750803b156200039457883b156200033c57875163313ce56760e01b8082526004989188818b81865afa9081156200033257601e9160ff918a9162000310575b501611620002b6578790898b518094819382525afa908115620002ac579060ff91879162000278575b5016604d81116200026557600a0a801562000252576c0c9f2c9cd04674edea400000000460805261010098895260c05260a05260055560e052835192838501906001600160401b038211858310176200023f57508452825265ffffffffffff421691015260035465ffffffffffff60801b4260801b169060018060b01b03191617600355516113bc9182620004bc83396080518281816104690152818161074b01528181610ca60152610ffc015260a0518281816105ec01528181610c2201528181610d770152611238015260c05182818161030501526112b4015260e051828181610520015281816108c701528181610bc301526111f501525181818161023e0152818161035d01526112e60152f35b634e487b7160e01b835260419052602482fd5b634e487b7160e01b865260128852602486fd5b634e487b7160e01b865260118852602486fd5b6200029d9150883d8a11620002a4575b62000294818362000451565b810190620004a0565b386200012e565b503d62000288565b89513d88823e3d90fd5b895162461bcd60e51b8152808a01899052602e60248201527f636f6e7374727563746f723a20746f6f206d75636820646563696d616c20666f60448201526d39102fb932bbb0b9322a37b5b2b760911b6064820152608490fd5b6200032b91508b3d8d11620002a45762000294818362000451565b3862000105565b8b513d8a823e3d90fd5b875162461bcd60e51b815260048101879052602b60248201527f636f6e7374727563746f723a20566f746572206d75737420626520612076616c60448201526a1a590818dbdb9d1c9858dd60aa1b6064820152608490fd5b875162461bcd60e51b815260048101879052602e60248201527f636f6e7374727563746f723a204c5020746f6b656e206d75737420626520612060448201526d1d985b1a590818dbdb9d1c9858dd60921b6064820152608490fd5b62461bcd60e51b815260048101879052603260248201527f636f6e7374727563746f723a2072657761726420746f6b656e206d7573742062604482015271194818481d985b1a590818dbdb9d1c9858dd60721b6064820152608490fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176200047557604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200044c57565b908160209103126200044c575160ff811681036200044c579056fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80631959a002146101ab57806346c96aac146101a257806350fd1f3e14610199578063570ca735146101905780635a2f3d09146101875780635fcbd2851461017e57806365d9aa4a14610175578063715018a61461016c57806373cfc6b2146101635780638da5cb5b1461015a5780639e447fc614610151578063ad56882714610148578063b3ab15fb1461013f578063b69ef8a814610136578063c031a66f1461012d578063db2e21bc14610124578063e3161ddd1461011b578063eea0160414610112578063f2fde38b146101095763f7c618c10361000e57610104610d60565b61000e565b50610104610cc9565b50610104610c8d565b50610104610c73565b50610104610b96565b50610104610aac565b50610104610a88565b50610104610a34565b5061010461099a565b50610104610916565b506101046108ec565b506101046108ae565b50610104610848565b50610104610334565b506101046102ee565b506101046102b6565b5061010461028c565b5061010461026d565b50610104610227565b506101046101cf565b600435906001600160a01b03821682036101ca57565b600080fd5b50346101ca5760203660031901126101ca576001600160a01b036101f16101b4565b1660005260046020526060604060002060018154910154604051916001600160801b038116835260801c60208301526040820152f35b50346101ca5760003660031901126101ca576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101ca5760003660031901126101ca576020600554604051908152f35b50346101ca5760003660031901126101ca576002546040516001600160a01b039091168152602090f35b50346101ca5760003660031901126101ca57604060035465ffffffffffff8251916001600160801b038116835260801c166020820152f35b50346101ca5760003660031901126101ca576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101ca5760603660031901126101ca5761034e6101b4565b6001600160a01b0390604435907f0000000000000000000000000000000000000000000000000000000000000000831633036107e5576002600154146107a05760026001556001600160a01b03811660009081526004602052604090206104d99390926003549065ffffffffffff90818360801c16908142116106dd575b505050506000928054836001600160801b0391828116806104dd575b505050600080516020611367833981519152929161049361048e6104676104b39461043361041760243561131a565b86546001600160801b0319166001600160801b03909116178655565b84546001600160801b0316906104606104546003546001600160801b031690565b6001600160801b031690565b9116610efe565b7f000000000000000000000000000000000000000000000000000000000000000090610f1d565b61131a565b81546001600160801b031660809190911b6001600160801b031916179055565b604051848152921691602090a26104c960018055565b6040519081529081906020820190565b0390f35b9061050361046761050d936104fd6104546003546001600160801b031690565b90610efe565b9060801c90610ee7565b61051d60018501918254906110ce565b967f0000000000000000000000000000000000000000000000000000000000000000156105d3575061048e6104676104b39460008051602061136783398151915297969461049394478c8181116000146105ab57506000808061059b949584604051915af19c61058b6110f6565b50610596829e611144565b610ee7565b90555b94505086929495506103e8565b6105cd915060008080958193604051915af19c6105c66110f6565b509c611144565b5561059e565b6040516370a0823160e01b8152306004820152919250907f0000000000000000000000000000000000000000000000000000000000000000906020816024818a86165afa9283156106d0575b926106a0575b508188111561066a576104676104b3946000805160206113678339815191529796946106638561065c610493978d61048e98611182565b809c610ee7565b905561059e565b61049391506104676104b39460008a6106996000805160206113678339815191529a99979c8c61048e97611182565b9a5561059e565b6106c291925060203d81116106c9575b6106ba8183610e54565b8101906110da565b9038610625565b503d6106b0565b6106d86110e9565b61061f565b610712938161071b575b50505042166003549065ffffffffffff60801b9060801b169065ffffffffffff60801b191617600355565b388080806103cc565b6001600160801b0361077561048e61077c946107706107496107406107989942610ee7565b60055490610efe565b7f000000000000000000000000000000000000000000000000000000000000000090610efe565b610f1d565b9116610f3d565b6001600160801b03166001600160801b03196003541617600355565b3880806106e7565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b60405162461bcd60e51b815260206004820152603560248201527f6f6e6c79566f7465723a206f6e6c79204d6173746572506c617479707573206360448201527430b71031b0b636103a3434b990333ab731ba34b7b760591b6064820152608490fd5b50346101ca576000806003193601126108ab5780546001600160a01b03811690610873338314610da6565b6001600160a01b03191682556040519082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b80fd5b50346101ca5760003660031901126101ca5760206040517f000000000000000000000000000000000000000000000000000000000000000015158152f35b50346101ca5760003660031901126101ca576000546040516001600160a01b039091168152602090f35b50346101ca5760203660031901126101ca57600054336001600160a01b039182161490811561098c575b501561095157610019600435611040565b60405162461bcd60e51b815260206004820152601360248201527237b7363ca7b832b930ba37b927b927bbb732b960691b6044820152606490fd5b905060025416331438610940565b50346101ca5760203660031901126101ca576100196109b76101b4565b6000546001600160a01b0391906109d19083163314610da6565b6040516370a0823160e01b81523060048201529116602082602481845afa918215610a27575b600092610a07575b503390611182565b610a2091925060203d81116106c9576106ba8183610e54565b90386109ff565b610a2f6110e9565b6109f7565b50346101ca5760203660031901126101ca57610a4e6101b4565b6000546001600160a01b039190610a689083163314610da6565b166bffffffffffffffffffffffff60a01b60025416176002556000604051f35b50346101ca5760003660031901126101ca576020610aa46111f3565b604051908152f35b50346101ca5760203660031901126101ca576104d96104c9610acc6101b4565b6001610b5f610af8610adc610e83565b6001600160a01b03909416600090815260046020526040902090565b92610b0d61045482516001600160801b031690565b90610b37610b2c6020610b1e61129d565b93015165ffffffffffff1690565b65ffffffffffff1690565b80421180610b8d575b610b68575b50506105036104678554926001600160801b038416610efe565b910154906110ce565b610b869291610770610749610740610b809442610ee7565b906110ce565b3880610b45565b50811515610b40565b50346101ca576000806003193601126108ab5780546001600160a01b0390610bc19082163314610da6565b7f000000000000000000000000000000000000000000000000000000000000000015610c095750610c048180804760405190335af1610bfe6110f6565b50611144565b604051f35b6040516370a0823160e01b8152306004820152610c04917f0000000000000000000000000000000000000000000000000000000000000000906020908390602490829085165afa918215610c66575b8492610a0757503390611182565b610c6e6110e9565b610c58565b50346101ca5760003660031901126101ca57610019610f65565b50346101ca5760003660031901126101ca5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346101ca5760203660031901126101ca57610ce36101b4565b6000546001600160a01b0390610cfc9082163314610da6565b811615610d0c5761001990610df1565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346101ca5760003660031901126101ca576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b15610dad57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600080546001600160a01b039283166001600160a01b03198216811783556040519093909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3565b50634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610e7657604052565b610e7e610e3d565b604052565b604051906040820182811067ffffffffffffffff821117610ec3575b6040526003546001600160801b038116835260801c65ffffffffffff166020830152565b610ecb610e3d565b610e9f565b50634e487b7160e01b600052601160045260246000fd5b818110610ef2570390565b610efa610ed0565b0390565b8060001904821181151516610f11570290565b610f19610ed0565b0290565b8115610f27570490565b634e487b7160e01b600052601260045260246000fd5b906001600160801b038080931691168092038111610f59570190565b610f61610ed0565b0190565b610f6d610e83565b602081019065ffffffffffff91828151164211610f8957505050565b6001600160801b0392610f9a61129d565b80610fd1575b504216905251166003549065ffffffffffff60801b4260801b169169ffffffffffffffffffff60b01b161717600355565b61102a61102161048e610ff485875116804210611033575b600554904203610efe565b9361077089957f000000000000000000000000000000000000000000000000000000000000000090610efe565b82865116610f3d565b16835238610fa0565b61103b610ed0565b610fe9565b69021e19e0c9bab240000081116110925760407fc390a98ace15a7bb6bab611eedfdbb2685043b241a869420043cdfb23ccfee509161107d610f65565b600554908060055582519182526020820152a1565b60405162461bcd60e51b81526020600482015260146024820152730e4caeec2e4c840e4c2e8ca40e8dede40d0d2ced60631b6044820152606490fd5b81198111610f59570190565b908160209103126101ca575190565b506040513d6000823e3d90fd5b3d1561113f573d9067ffffffffffffffff8211611132575b60405191611126601f8201601f191660200184610e54565b82523d6000602084013e565b61113a610e3d565b61110e565b606090565b1561114b57565b60405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606490fd5b600091826044926020956040519363a9059cbb60e01b8552600485015260248401525af13d15601f3d11600160005114161716156111bc57565b60405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b6044820152606490fd5b7f00000000000000000000000000000000000000000000000000000000000000001561121d574790565b6040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115611290575b600091611275575090565b61128d915060203d81116106c9576106ba8183610e54565b90565b6112986110e9565b61126a565b6040516353e5642360e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602090829060249082907f0000000000000000000000000000000000000000000000000000000000000000165afa90811561129057600091611275575090565b6001600160801b039081811161132e571690565b60405162461bcd60e51b815260206004820152601060248201526f75696e74313238206f766572666c6f7760801b6044820152606490fdfed1072bb52c3131d0c96197b73fb8a45637e30f8b6664fc142310cc9b242859b4a26469706673582212208fdd87d65ff027defa2b233242924e7f740fe2c7ce5170558588e847ac76e88964736f6c634300080f00330000000000000000000000001f6b6b505d199b9bd0a6642b8d44533a811598da000000000000000000000000542dd5f38fcb3aab28d6418cf3e1d36329a79ac700000000000000000000000020cf1b6e9d856321ed4686877cf4538f2c84b4de000000000000000000000000000000000000000000000000001b69b4be86b2910000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000001f6b6b505d199b9bd0a6642b8d44533a811598da000000000000000000000000542dd5f38fcb3aab28d6418cf3e1d36329a79ac700000000000000000000000020cf1b6e9d856321ed4686877cf4538f2c84b4de000000000000000000000000000000000000000000000000001b69b4be86b2910000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _voter (address): 0x1f6b6b505d199b9bd0a6642b8d44533a811598da
Arg [1] : _lpToken (address): 0x542dd5f38fcb3aab28d6418cf3e1d36329a79ac7
Arg [2] : _rewardToken (address): 0x20cf1b6e9d856321ed4686877cf4538f2c84b4de
Arg [3] : _tokenPerSec (uint256): 7716049382716049
Arg [4] : _isNative (bool): False

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000001f6b6b505d199b9bd0a6642b8d44533a811598da
Arg [1] : 000000000000000000000000542dd5f38fcb3aab28d6418cf3e1d36329a79ac7
Arg [2] : 00000000000000000000000020cf1b6e9d856321ed4686877cf4538f2c84b4de
Arg [3] : 000000000000000000000000000000000000000000000000001b69b4be86b291
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000


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