ETH Price: $1,798.09 (+7.30%)

Contract

0x9b4484D5A2665930702d09f74086CAD86d96b25E

Overview

ETH Balance

Taiko Alethia LogoTaiko Alethia LogoTaiko Alethia Logo0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward6140712024-11-28 2:52:35146 days ago1732762355IN
0x9b4484D5...86d96b25E
0 ETH0.000009680.10884718
Withdraw6140572024-11-28 2:48:23146 days ago1732762103IN
0x9b4484D5...86d96b25E
0 ETH0.000013980.10884718
Withdraw6103112024-11-27 1:12:23147 days ago1732669943IN
0x9b4484D5...86d96b25E
0 ETH0.000011680.12624718
Stake6043172024-11-25 1:05:59149 days ago1732496759IN
0x9b4484D5...86d96b25E
0 ETH0.000015260.12584718
Withdraw5910992024-11-21 12:38:59153 days ago1732192739IN
0x9b4484D5...86d96b25E
0 ETH0.000019690.21280818
Get Reward5905912024-11-21 9:59:59153 days ago1732183199IN
0x9b4484D5...86d96b25E
0 ETH0.000006030.13494718
Get Reward5900612024-11-21 7:28:59153 days ago1732174139IN
0x9b4484D5...86d96b25E
0 ETH0.000013560.14784718
Stake5320032024-11-05 18:26:35168 days ago1730831195IN
0x9b4484D5...86d96b25E
0 ETH0.000017170.1644941
Stake5267552024-11-04 18:12:11169 days ago1730743931IN
0x9b4484D5...86d96b25E
0 ETH0.0000120.1150001
Stake5267002024-11-04 17:58:59169 days ago1730743139IN
0x9b4484D5...86d96b25E
0 ETH0.000011580.1110001
Get Reward5201572024-11-03 16:00:35170 days ago1730649635IN
0x9b4484D5...86d96b25E
0 ETH0.000010730.1170012
Stake5200282024-11-03 15:29:35170 days ago1730647775IN
0x9b4484D5...86d96b25E
0 ETH0.000012650.1212012
Get Reward5200212024-11-03 15:26:47170 days ago1730647607IN
0x9b4484D5...86d96b25E
0 ETH0.000011010.1200002
Get Reward5144852024-11-02 12:36:11172 days ago1730550971IN
0x9b4484D5...86d96b25E
0 ETH0.000011010.12
Get Reward5106592024-11-01 19:14:59172 days ago1730488499IN
0x9b4484D5...86d96b25E
0 ETH0.000011290.1160009
Stake4841422024-10-24 19:40:59180 days ago1729798859IN
0x9b4484D5...86d96b25E
0 ETH0.000015880.1200001
Stake4840842024-10-24 18:58:47180 days ago1729796327IN
0x9b4484D5...86d96b25E
0 ETH0.000015880.1200001
Get Reward4840752024-10-24 18:52:35180 days ago1729795955IN
0x9b4484D5...86d96b25E
0 ETH0.000011640.1200001
Stake4830712024-10-24 9:24:11181 days ago1729761851IN
0x9b4484D5...86d96b25E
0 ETH0.000019710.1710001
Stake4826212024-10-24 6:24:23181 days ago1729751063IN
0x9b4484D5...86d96b25E
0 ETH0.000015280.1325919
Stake4668612024-10-17 14:17:11187 days ago1729174631IN
0x9b4484D5...86d96b25E
0 ETH0.000013230.1000002
Stake4668312024-10-17 13:52:23188 days ago1729173143IN
0x9b4484D5...86d96b25E
0 ETH0.000014290.1079482
Stake4665212024-10-17 9:39:59188 days ago1729157999IN
0x9b4484D5...86d96b25E
0 ETH0.000013250.115
Get Reward4641232024-10-16 7:42:47189 days ago1729064567IN
0x9b4484D5...86d96b25E
0 ETH0.00000970.1000002
Withdraw4574802024-10-13 10:59:59192 days ago1728817199IN
0x9b4484D5...86d96b25E
0 ETH0.000012530.1
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TaiDogStakingRewards

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : TaiDogStakingRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IStakingRewards.sol";
import "./RewardsDistributionRecipient.sol";
import "./Pausable.sol";

// https://docs.synthetix.io/contracts/source/contracts/stakingrewards
contract TaiDogStakingRewards is IStakingRewards, RewardsDistributionRecipient, ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    
    /* ========== STATE VARIABLES ========== */

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public rewardsDuration = 14 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

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

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

    constructor(
        address _owner,
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken
    ) Owned(_owner) {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDistribution = _rewardsDistribution;
    }

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

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

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

    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

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

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

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

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

    function stake(uint256 amount) public virtual nonReentrant notPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        uint256 initialBalance = stakingToken.balanceOf(address(this));
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        uint256 addedAmount = stakingToken.balanceOf(address(this)) - initialBalance;
        _totalSupply = _totalSupply.add(addedAmount);
        _balances[msg.sender] = _balances[msg.sender].add(addedAmount);
        emit Staked(msg.sender, addedAmount);
    }

    function stakeFor(uint256 amount, address receiver) public virtual nonReentrant notPaused updateReward(receiver) {
        require(amount > 0, "Cannot stake 0");
        uint256 initialBalance = stakingToken.balanceOf(address(this));
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        uint256 addedAmount = stakingToken.balanceOf(address(this)) - initialBalance;
        _totalSupply = _totalSupply.add(addedAmount);
        _balances[receiver] = _balances[receiver].add(addedAmount);
        emit StakedFor(msg.sender, receiver, addedAmount);
    }

    function withdraw(uint256 amount) public virtual nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

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

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

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

    function notifyRewardAmount(uint256 reward) public virtual override(IStakingRewards, RewardsDistributionRecipient) onlyRewardsDistribution updateReward(address(0)) {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high");

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

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    /// @notice DO NOT SEND ETH TO THIS CONTRACT. Added support for recovering exchange transfer
    receive() external payable {
        (bool success, ) = owner.call{value: msg.value}("");
        require(success, "Transfer failed");
    }

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

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

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

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

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

File 2 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 3 of 11 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 6 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

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

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
interface IStakingRewards {
    // Views

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

    function earned(address account) external view returns (uint256);

    function getRewardForDuration() external view returns (uint256);

    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    // Mutative

    function exit() external;

    function getReward() external;

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function notifyRewardAmount(uint256 reward) external;

    function stakeFor(uint256 amount, address receiver) external;
}

File 9 of 11 : Owned.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// https://docs.synthetix.io/contracts/Owned
// NO NEED TO AUDIT
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor (address _owner) {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 10 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Inheritance
import "./Owned.sol";

// https://docs.synthetix.io/contracts/source/contracts/pausable
abstract contract Pausable is Owned {
    uint public lastPauseTime;
    bool public paused;

    constructor() {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");
        // Paused will be false, and lastPauseTime will be 0 upon initialisation
    }

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

File 11 of 11 : RewardsDistributionRecipient.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Inheritance
import "./Owned.sol";

// https://docs.synthetix.io/contracts/source/contracts/rewardsdistributionrecipient
abstract contract RewardsDistributionRecipient is Owned {
    address public rewardsDistribution;
    
    function notifyRewardAmount(uint256 reward) public virtual;

    modifier onlyRewardsDistribution() {
        require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
        _;
    }

    function setRewardsDistribution(address _rewardsDistribution) external onlyOwner {
        rewardsDistribution = _rewardsDistribution;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakedFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052621275006009553480156200001857600080fd5b5060405162001d9b38038062001d9b8339810160408190526200003b91620001b0565b836001600160a01b038116620000985760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a15060016003556000546001600160a01b0316620001435760405162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b60448201526064016200008f565b600580546001600160a01b0393841661010002610100600160a81b0319909116179055600680549183166001600160a01b031992831617905560028054939092169216919091179055506200020d565b80516001600160a01b0381168114620001ab57600080fd5b919050565b60008060008060808587031215620001c757600080fd5b620001d28562000193565b9350620001e26020860162000193565b9250620001f26040860162000193565b9150620002026060860162000193565b905092959194509250565b611b7e806200021d6000396000f3fe6080604052600436106101e65760003560e01c806372f702f311610102578063a694fc3a11610095578063d1af0c7d11610064578063d1af0c7d14610607578063df136d651461062c578063e9fad8ee14610642578063ebe2b12b1461065757600080fd5b8063a694fc3a1461059c578063c8f33c91146105bc578063cc1a378f146105d2578063cd3daf9d146105f257600080fd5b80638980f11f116100d15780638980f11f146105195780638b876347146105395780638da5cb5b1461056657806391b4ded91461058657600080fd5b806372f702f3146104b957806379ba5097146104d95780637b0a47ee146104ee57806380faa57d1461050457600080fd5b8063386a95251161017a57806351746bb21161014957806351746bb21461041957806353a47bb7146104395780635c975abb1461045957806370a082311461048357600080fd5b8063386a9525146103965780633c6b16ab146103ac5780633d18b912146103cc5780633fc6df6e146103e157600080fd5b806318160ddd116101b657806318160ddd1461032c57806319762143146103415780631c1f78eb146103615780632e1a7d4d1461037657600080fd5b80628cc2621461028c5780630700037d146102bf5780631627540c146102ec57806316c38b3c1461030c57600080fd5b3661028757600080546040516001600160a01b039091169034908381818185875af1925050503d8060008114610238576040519150601f19603f3d011682016040523d82523d6000602084013e61023d565b606091505b50509050806102855760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b005b600080fd5b34801561029857600080fd5b506102ac6102a73660046118b0565b61066d565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102ac6102da3660046118b0565b600d6020526000908152604090205481565b3480156102f857600080fd5b506102856103073660046118b0565b6106eb565b34801561031857600080fd5b506102856103273660046118d9565b61076a565b34801561033857600080fd5b50600e546102ac565b34801561034d57600080fd5b5061028561035c3660046118b0565b6107fe565b34801561036d57600080fd5b506102ac61084a565b34801561038257600080fd5b506102856103913660046118f6565b610868565b3480156103a257600080fd5b506102ac60095481565b3480156103b857600080fd5b506102856103c73660046118f6565b6109a5565b3480156103d857600080fd5b50610285610bf8565b3480156103ed57600080fd5b50600254610401906001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b34801561042557600080fd5b5061028561043436600461190f565b610ce2565b34801561044557600080fd5b50600154610401906001600160a01b031681565b34801561046557600080fd5b506005546104739060ff1681565b60405190151581526020016102b6565b34801561048f57600080fd5b506102ac61049e3660046118b0565b6001600160a01b03166000908152600f602052604090205490565b3480156104c557600080fd5b50600654610401906001600160a01b031681565b3480156104e557600080fd5b50610285610f4c565b3480156104fa57600080fd5b506102ac60085481565b34801561051057600080fd5b506102ac611036565b34801561052557600080fd5b5061028561053436600461193b565b61104d565b34801561054557600080fd5b506102ac6105543660046118b0565b600c6020526000908152604090205481565b34801561057257600080fd5b50600054610401906001600160a01b031681565b34801561059257600080fd5b506102ac60045481565b3480156105a857600080fd5b506102856105b73660046118f6565b61113f565b3480156105c857600080fd5b506102ac600a5481565b3480156105de57600080fd5b506102856105ed3660046118f6565b611391565b3480156105fe57600080fd5b506102ac61148d565b34801561061357600080fd5b506005546104019061010090046001600160a01b031681565b34801561063857600080fd5b506102ac600b5481565b34801561064e57600080fd5b506102856114d8565b34801561066357600080fd5b506102ac60075481565b6001600160a01b0381166000908152600d6020908152604080832054600c9092528220546106e591906106df90670de0b6b3a7640000906106d9906106ba906106b461148d565b906114f9565b6001600160a01b0388166000908152600f60205260409020549061150c565b90611518565b90611524565b92915050565b6000546001600160a01b031633146107155760405162461bcd60e51b815260040161027c90611965565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6000546001600160a01b031633146107945760405162461bcd60e51b815260040161027c90611965565b60055460ff161515811515146107fb576005805460ff191682151590811790915560ff16156107c257426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161075f565b50565b6000546001600160a01b031633146108285760405162461bcd60e51b815260040161027c90611965565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600061086360095460085461150c90919063ffffffff16565b905090565b610870611530565b3361087961148d565b600b55610884611036565b600a556001600160a01b038116156108cb5761089f8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6000821161090f5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015260640161027c565b600e5461091c90836114f9565b600e55336000908152600f602052604090205461093990836114f9565b336000818152600f6020526040902091909155600654610965916001600160a01b039091169084611589565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2506107fb6001600355565b6002546001600160a01b03163314610a125760405162461bcd60e51b815260206004820152602a60248201527f43616c6c6572206973206e6f742052657761726473446973747269627574696f6044820152691b8818dbdb9d1c9858dd60b21b606482015260840161027c565b6000610a1c61148d565b600b55610a27611036565b600a556001600160a01b03811615610a6e57610a428161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6007544210610a8d57600954610a85908390611518565b600855610ad0565b600754600090610a9d90426114f9565b90506000610ab66008548361150c90919063ffffffff16565b600954909150610aca906106d98684611524565b60085550505b6005546040516370a0823160e01b815230600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4291906119b4565b9050610b596009548261151890919063ffffffff16565b6008541115610baa5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015260640161027c565b42600a819055600954610bbd9190611524565b6007556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b610c00611530565b33610c0961148d565b600b55610c14611036565b600a556001600160a01b03811615610c5b57610c2f8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b336000908152600d60205260409020548015610cd457336000818152600d6020526040812055600554610c9e916101009091046001600160a01b03169083611589565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050610ce06001600355565b565b610cea611530565b60055460ff1615610d0d5760405162461bcd60e51b815260040161027c906119cd565b80610d1661148d565b600b55610d21611036565b600a556001600160a01b03811615610d6857610d3c8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60008311610da95760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015260640161027c565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610df2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1691906119b4565b600654909150610e31906001600160a01b03163330876115f1565b6006546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea291906119b4565b610eac9190611a40565b600e54909150610ebc9082611524565b600e556001600160a01b0384166000908152600f6020526040902054610ee29082611524565b6001600160a01b0385166000818152600f60205260409081902092909255905133907ff27841bf2ce46c8c33a68e103ff4238ad9192a4156d62c4b449f834e914d129190610f339085815260200190565b60405180910390a3505050610f486001600355565b5050565b6001546001600160a01b03163314610fc45760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b606482015260840161027c565b600054600154604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60006007544210611048575060075490565b504290565b6000546001600160a01b031633146110775760405162461bcd60e51b815260040161027c90611965565b6006546001600160a01b03908116908316036110df5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b606482015260840161027c565b6000546110f9906001600160a01b03848116911683611589565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b611147611530565b60055460ff161561116a5760405162461bcd60e51b815260040161027c906119cd565b3361117361148d565b600b5561117e611036565b600a556001600160a01b038116156111c5576111998161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600082116112065760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015260640161027c565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561124f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127391906119b4565b60065490915061128e906001600160a01b03163330866115f1565b6006546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156112db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ff91906119b4565b6113099190611a40565b600e549091506113199082611524565b600e55336000908152600f60205260409020546113369082611524565b336000818152600f6020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061137c9084815260200190565b60405180910390a25050506107fb6001600355565b6000546001600160a01b031633146113bb5760405162461bcd60e51b815260040161027c90611965565b60075442116114585760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a40161027c565b60098190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39060200161075f565b6000600e546000036114a05750600b5490565b6108636114cf600e546106d9670de0b6b3a76400006114c96008546114c9600a546106b4611036565b9061150c565b600b5490611524565b336000908152600f60205260409020546114f190610868565b610ce0610bf8565b60006115058284611a40565b9392505050565b60006115058284611a57565b60006115058284611a76565b60006115058284611a98565b6002600354036115825760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027c565b6002600355565b6040516001600160a01b0383166024820152604481018290526115ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261162f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526116299085906323b872dd60e01b906084016115b5565b50505050565b6000611684826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117049092919063ffffffff16565b90508051600014806116a55750808060200190518101906116a59190611ab0565b6115ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161027c565b6060611713848460008561171b565b949350505050565b60608247101561177c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161027c565b600080866001600160a01b031685876040516117989190611af9565b60006040518083038185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b50915091506117eb878383876117f6565b979650505050505050565b6060831561186557825160000361185e576001600160a01b0385163b61185e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161027c565b5081611713565b611713838381511561187a5781518083602001fd5b8060405162461bcd60e51b815260040161027c9190611b15565b80356001600160a01b03811681146118ab57600080fd5b919050565b6000602082840312156118c257600080fd5b61150582611894565b80151581146107fb57600080fd5b6000602082840312156118eb57600080fd5b8135611505816118cb565b60006020828403121561190857600080fd5b5035919050565b6000806040838503121561192257600080fd5b8235915061193260208401611894565b90509250929050565b6000806040838503121561194e57600080fd5b61195783611894565b946020939093013593505050565b6020808252602f908201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660408201526e37b936903a3434b99030b1ba34b7b760891b606082015260800190565b6000602082840312156119c657600080fd5b5051919050565b6020808252603c908201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060408201527f7768696c652074686520636f6e74726163742069732070617573656400000000606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015611a5257611a52611a2a565b500390565b6000816000190483118215151615611a7157611a71611a2a565b500290565b600082611a9357634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611aab57611aab611a2a565b500190565b600060208284031215611ac257600080fd5b8151611505816118cb565b60005b83811015611ae8578181015183820152602001611ad0565b838111156116295750506000910152565b60008251611b0b818460208701611acd565b9190910192915050565b6020815260008251806020840152611b34816040850160208701611acd565b601f01601f1916919091016040019291505056fea2646970667358221220726b738f8294ed7ae4e212335295ba5c399402170b724b11585456f880ab42c164736f6c634300080f0033000000000000000000000000080584704f40f7f2fc68014da5a17c0e9699ff57000000000000000000000000e71462efe7cc7e6bd65f1bf7b7dcf27a47cbf9690000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee70000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee7

Deployed Bytecode

0x6080604052600436106101e65760003560e01c806372f702f311610102578063a694fc3a11610095578063d1af0c7d11610064578063d1af0c7d14610607578063df136d651461062c578063e9fad8ee14610642578063ebe2b12b1461065757600080fd5b8063a694fc3a1461059c578063c8f33c91146105bc578063cc1a378f146105d2578063cd3daf9d146105f257600080fd5b80638980f11f116100d15780638980f11f146105195780638b876347146105395780638da5cb5b1461056657806391b4ded91461058657600080fd5b806372f702f3146104b957806379ba5097146104d95780637b0a47ee146104ee57806380faa57d1461050457600080fd5b8063386a95251161017a57806351746bb21161014957806351746bb21461041957806353a47bb7146104395780635c975abb1461045957806370a082311461048357600080fd5b8063386a9525146103965780633c6b16ab146103ac5780633d18b912146103cc5780633fc6df6e146103e157600080fd5b806318160ddd116101b657806318160ddd1461032c57806319762143146103415780631c1f78eb146103615780632e1a7d4d1461037657600080fd5b80628cc2621461028c5780630700037d146102bf5780631627540c146102ec57806316c38b3c1461030c57600080fd5b3661028757600080546040516001600160a01b039091169034908381818185875af1925050503d8060008114610238576040519150601f19603f3d011682016040523d82523d6000602084013e61023d565b606091505b50509050806102855760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b005b600080fd5b34801561029857600080fd5b506102ac6102a73660046118b0565b61066d565b6040519081526020015b60405180910390f35b3480156102cb57600080fd5b506102ac6102da3660046118b0565b600d6020526000908152604090205481565b3480156102f857600080fd5b506102856103073660046118b0565b6106eb565b34801561031857600080fd5b506102856103273660046118d9565b61076a565b34801561033857600080fd5b50600e546102ac565b34801561034d57600080fd5b5061028561035c3660046118b0565b6107fe565b34801561036d57600080fd5b506102ac61084a565b34801561038257600080fd5b506102856103913660046118f6565b610868565b3480156103a257600080fd5b506102ac60095481565b3480156103b857600080fd5b506102856103c73660046118f6565b6109a5565b3480156103d857600080fd5b50610285610bf8565b3480156103ed57600080fd5b50600254610401906001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b34801561042557600080fd5b5061028561043436600461190f565b610ce2565b34801561044557600080fd5b50600154610401906001600160a01b031681565b34801561046557600080fd5b506005546104739060ff1681565b60405190151581526020016102b6565b34801561048f57600080fd5b506102ac61049e3660046118b0565b6001600160a01b03166000908152600f602052604090205490565b3480156104c557600080fd5b50600654610401906001600160a01b031681565b3480156104e557600080fd5b50610285610f4c565b3480156104fa57600080fd5b506102ac60085481565b34801561051057600080fd5b506102ac611036565b34801561052557600080fd5b5061028561053436600461193b565b61104d565b34801561054557600080fd5b506102ac6105543660046118b0565b600c6020526000908152604090205481565b34801561057257600080fd5b50600054610401906001600160a01b031681565b34801561059257600080fd5b506102ac60045481565b3480156105a857600080fd5b506102856105b73660046118f6565b61113f565b3480156105c857600080fd5b506102ac600a5481565b3480156105de57600080fd5b506102856105ed3660046118f6565b611391565b3480156105fe57600080fd5b506102ac61148d565b34801561061357600080fd5b506005546104019061010090046001600160a01b031681565b34801561063857600080fd5b506102ac600b5481565b34801561064e57600080fd5b506102856114d8565b34801561066357600080fd5b506102ac60075481565b6001600160a01b0381166000908152600d6020908152604080832054600c9092528220546106e591906106df90670de0b6b3a7640000906106d9906106ba906106b461148d565b906114f9565b6001600160a01b0388166000908152600f60205260409020549061150c565b90611518565b90611524565b92915050565b6000546001600160a01b031633146107155760405162461bcd60e51b815260040161027c90611965565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6000546001600160a01b031633146107945760405162461bcd60e51b815260040161027c90611965565b60055460ff161515811515146107fb576005805460ff191682151590811790915560ff16156107c257426004555b60055460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59060200161075f565b50565b6000546001600160a01b031633146108285760405162461bcd60e51b815260040161027c90611965565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600061086360095460085461150c90919063ffffffff16565b905090565b610870611530565b3361087961148d565b600b55610884611036565b600a556001600160a01b038116156108cb5761089f8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6000821161090f5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015260640161027c565b600e5461091c90836114f9565b600e55336000908152600f602052604090205461093990836114f9565b336000818152600f6020526040902091909155600654610965916001600160a01b039091169084611589565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2506107fb6001600355565b6002546001600160a01b03163314610a125760405162461bcd60e51b815260206004820152602a60248201527f43616c6c6572206973206e6f742052657761726473446973747269627574696f6044820152691b8818dbdb9d1c9858dd60b21b606482015260840161027c565b6000610a1c61148d565b600b55610a27611036565b600a556001600160a01b03811615610a6e57610a428161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6007544210610a8d57600954610a85908390611518565b600855610ad0565b600754600090610a9d90426114f9565b90506000610ab66008548361150c90919063ffffffff16565b600954909150610aca906106d98684611524565b60085550505b6005546040516370a0823160e01b815230600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4291906119b4565b9050610b596009548261151890919063ffffffff16565b6008541115610baa5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015260640161027c565b42600a819055600954610bbd9190611524565b6007556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b610c00611530565b33610c0961148d565b600b55610c14611036565b600a556001600160a01b03811615610c5b57610c2f8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b336000908152600d60205260409020548015610cd457336000818152600d6020526040812055600554610c9e916101009091046001600160a01b03169083611589565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050610ce06001600355565b565b610cea611530565b60055460ff1615610d0d5760405162461bcd60e51b815260040161027c906119cd565b80610d1661148d565b600b55610d21611036565b600a556001600160a01b03811615610d6857610d3c8161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60008311610da95760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015260640161027c565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610df2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1691906119b4565b600654909150610e31906001600160a01b03163330876115f1565b6006546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea291906119b4565b610eac9190611a40565b600e54909150610ebc9082611524565b600e556001600160a01b0384166000908152600f6020526040902054610ee29082611524565b6001600160a01b0385166000818152600f60205260409081902092909255905133907ff27841bf2ce46c8c33a68e103ff4238ad9192a4156d62c4b449f834e914d129190610f339085815260200190565b60405180910390a3505050610f486001600355565b5050565b6001546001600160a01b03163314610fc45760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b606482015260840161027c565b600054600154604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60006007544210611048575060075490565b504290565b6000546001600160a01b031633146110775760405162461bcd60e51b815260040161027c90611965565b6006546001600160a01b03908116908316036110df5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b606482015260840161027c565b6000546110f9906001600160a01b03848116911683611589565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b611147611530565b60055460ff161561116a5760405162461bcd60e51b815260040161027c906119cd565b3361117361148d565b600b5561117e611036565b600a556001600160a01b038116156111c5576111998161066d565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600082116112065760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015260640161027c565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561124f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127391906119b4565b60065490915061128e906001600160a01b03163330866115f1565b6006546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156112db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ff91906119b4565b6113099190611a40565b600e549091506113199082611524565b600e55336000908152600f60205260409020546113369082611524565b336000818152600f6020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061137c9084815260200190565b60405180910390a25050506107fb6001600355565b6000546001600160a01b031633146113bb5760405162461bcd60e51b815260040161027c90611965565b60075442116114585760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a40161027c565b60098190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39060200161075f565b6000600e546000036114a05750600b5490565b6108636114cf600e546106d9670de0b6b3a76400006114c96008546114c9600a546106b4611036565b9061150c565b600b5490611524565b336000908152600f60205260409020546114f190610868565b610ce0610bf8565b60006115058284611a40565b9392505050565b60006115058284611a57565b60006115058284611a76565b60006115058284611a98565b6002600354036115825760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161027c565b6002600355565b6040516001600160a01b0383166024820152604481018290526115ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261162f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526116299085906323b872dd60e01b906084016115b5565b50505050565b6000611684826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117049092919063ffffffff16565b90508051600014806116a55750808060200190518101906116a59190611ab0565b6115ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161027c565b6060611713848460008561171b565b949350505050565b60608247101561177c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161027c565b600080866001600160a01b031685876040516117989190611af9565b60006040518083038185875af1925050503d80600081146117d5576040519150601f19603f3d011682016040523d82523d6000602084013e6117da565b606091505b50915091506117eb878383876117f6565b979650505050505050565b6060831561186557825160000361185e576001600160a01b0385163b61185e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161027c565b5081611713565b611713838381511561187a5781518083602001fd5b8060405162461bcd60e51b815260040161027c9190611b15565b80356001600160a01b03811681146118ab57600080fd5b919050565b6000602082840312156118c257600080fd5b61150582611894565b80151581146107fb57600080fd5b6000602082840312156118eb57600080fd5b8135611505816118cb565b60006020828403121561190857600080fd5b5035919050565b6000806040838503121561192257600080fd5b8235915061193260208401611894565b90509250929050565b6000806040838503121561194e57600080fd5b61195783611894565b946020939093013593505050565b6020808252602f908201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660408201526e37b936903a3434b99030b1ba34b7b760891b606082015260800190565b6000602082840312156119c657600080fd5b5051919050565b6020808252603c908201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060408201527f7768696c652074686520636f6e74726163742069732070617573656400000000606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015611a5257611a52611a2a565b500390565b6000816000190483118215151615611a7157611a71611a2a565b500290565b600082611a9357634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611aab57611aab611a2a565b500190565b600060208284031215611ac257600080fd5b8151611505816118cb565b60005b83811015611ae8578181015183820152602001611ad0565b838111156116295750506000910152565b60008251611b0b818460208701611acd565b9190910192915050565b6020815260008251806020840152611b34816040850160208701611acd565b601f01601f1916919091016040019291505056fea2646970667358221220726b738f8294ed7ae4e212335295ba5c399402170b724b11585456f880ab42c164736f6c634300080f0033

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

000000000000000000000000080584704f40f7f2fc68014da5a17c0e9699ff57000000000000000000000000e71462efe7cc7e6bd65f1bf7b7dcf27a47cbf9690000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee70000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee7

-----Decoded View---------------
Arg [0] : _owner (address): 0x080584704F40f7F2Fc68014Da5A17c0e9699ff57
Arg [1] : _rewardsDistribution (address): 0xe71462eFe7Cc7E6BD65f1bF7B7dcF27A47cBf969
Arg [2] : _rewardsToken (address): 0x1Fd2f219B59b88bDda7dacd50c6e0667aA2d3Ee7
Arg [3] : _stakingToken (address): 0x1Fd2f219B59b88bDda7dacd50c6e0667aA2d3Ee7

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000080584704f40f7f2fc68014da5a17c0e9699ff57
Arg [1] : 000000000000000000000000e71462efe7cc7e6bd65f1bf7b7dcf27a47cbf969
Arg [2] : 0000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee7
Arg [3] : 0000000000000000000000001fd2f219b59b88bdda7dacd50c6e0667aa2d3ee7


Block Transaction Gas Used Reward
view all blocks sequenced

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
[ Download: CSV Export  ]

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