ETH Price: $2,410.29 (-2.89%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake211166262024-11-04 20:18:595 hrs ago1730751539IN
0xA106723B...133801566
0 ETH0.000678446.98080526
Get Reward211150562024-11-04 15:03:1111 hrs ago1730732591IN
0xA106723B...133801566
0 ETH0.000629388.25491759
Withdraw211140732024-11-04 11:46:1114 hrs ago1730720771IN
0xA106723B...133801566
0 ETH0.000826347.74668688
Get Reward211140692024-11-04 11:45:2314 hrs ago1730720723IN
0xA106723B...133801566
0 ETH0.000684847.6158267
Stake211139362024-11-04 11:18:1114 hrs ago1730719091IN
0xA106723B...133801566
0 ETH0.000629466.12544165
Withdraw211131642024-11-04 8:42:4717 hrs ago1730709767IN
0xA106723B...133801566
0 ETH0.000533485.00118072
Get Reward211131602024-11-04 8:41:5917 hrs ago1730709719IN
0xA106723B...133801566
0 ETH0.00047464.9798572
Get Reward211093132024-11-03 19:50:1130 hrs ago1730663411IN
0xA106723B...133801566
0 ETH0.000414854.47572017
Withdraw210947952024-11-01 19:09:233 days ago1730488163IN
0xA106723B...133801566
0 ETH0.000991938.45958108
Get Reward210947892024-11-01 19:08:113 days ago1730488091IN
0xA106723B...133801566
0 ETH0.000843029.09505244
Stake210930132024-11-01 13:11:473 days ago1730466707IN
0xA106723B...133801566
0 ETH0.0011458511.46830045
Get Reward210927362024-11-01 12:16:113 days ago1730463371IN
0xA106723B...133801566
0 ETH0.00076898.29540187
Get Reward210924112024-11-01 11:10:593 days ago1730459459IN
0xA106723B...133801566
0 ETH0.00062536.60372903
Get Reward210924012024-11-01 11:08:593 days ago1730459339IN
0xA106723B...133801566
0 ETH0.000635526.71167151
Get Reward210921282024-11-01 10:13:593 days ago1730456039IN
0xA106723B...133801566
0 ETH0.00084468.91970931
Get Reward210905402024-11-01 4:55:113 days ago1730436911IN
0xA106723B...133801566
0 ETH0.000385594.16008908
Withdraw210905332024-11-01 4:53:473 days ago1730436827IN
0xA106723B...133801566
0 ETH0.000642445.47952027
Get Reward210873672024-10-31 18:18:354 days ago1730398715IN
0xA106723B...133801566
0 ETH0.0011839512.50349044
Get Reward210865822024-10-31 15:41:234 days ago1730389283IN
0xA106723B...133801566
0 ETH0.0010495313.08124546
Get Reward210842872024-10-31 8:01:354 days ago1730361695IN
0xA106723B...133801566
0 ETH0.000756148.15773261
Stake210831442024-10-31 4:10:474 days ago1730347847IN
0xA106723B...133801566
0 ETH0.001013178.86984213
Get Reward210831032024-10-31 4:02:354 days ago1730347355IN
0xA106723B...133801566
0 ETH0.000813098.58690971
Get Reward210830742024-10-31 3:56:474 days ago1730347007IN
0xA106723B...133801566
0 ETH0.000763978.0681255
Get Reward210830302024-10-31 3:47:594 days ago1730346479IN
0xA106723B...133801566
0 ETH0.00090189.52375509
Get Reward210829712024-10-31 3:35:594 days ago1730345759IN
0xA106723B...133801566
0 ETH0.000714627.54700104
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiRewards

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 10 : MultiRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

/***
 *
 *   ________  ___   ______________________
 *  / ___/ _ \/ _ | / __/ __/  _/_  __/  _/
 * / (_ / , _/ __ |/ _// _/_/ /  / / _/ /
 * \___/_/|_/_/ |_/_/ /_/ /___/ /_/ /___/
 *
 * https://graffiti.farm
 * Make Ethereum decentralized again
 */

import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";

contract MultiRewards is ReentrancyGuard, Pausable, Ownable {
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    struct Reward {
        address rewardsDistributor;
        uint256 rewardsDuration;
        uint256 periodFinish;
        uint256 rewardRate;
        uint256 lastUpdateTime;
        uint256 rewardPerTokenStored;
    }
    IERC20 public stakingToken;
    mapping(address => Reward) public rewardData;
    address[] public rewardTokens;

    // user -> reward token -> amount
    mapping(address => mapping(address => uint256))
        public userRewardPerTokenPaid;
    mapping(address => mapping(address => uint256)) public rewards;

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

    address public strategist;
    address public feeRecipient;

    uint256 public constant MAX_FEE = 500; // 5%
    uint256 public depositFee = 0; // 0%
    uint256 public withdrawFee = 0; // 0%


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

    constructor(address _stakingToken) Ownable(msg.sender)  {
        stakingToken = IERC20(_stakingToken);
        feeRecipient = msg.sender;
    }

    function togglePause() external onlyOwner() {
        if (paused()) _unpause();
        else _pause();
    }


    function setFeeRecipient(address _feeRecipient) external onlyOwner {
        require(_feeRecipient != address(0), "feeRecipient is 0");
        emit FeeRecipientUpdated(feeRecipient, _feeRecipient);
        feeRecipient = _feeRecipient;
    }

    function setDepositFee(uint256 _depositFee) external onlyOwner {
        require(_depositFee <= MAX_FEE, "fee too high");
        emit DepositFeeUpdated(depositFee, _depositFee);
        depositFee = _depositFee;
    }

    function setWithdrawFee(uint256 _withdrawFee) external onlyOwner {
        require(_withdrawFee <= MAX_FEE, "fee too high");
        emit WithdrawFeeUpdated(withdrawFee, _withdrawFee);
        withdrawFee = _withdrawFee;
    }

    function addReward(
        address _rewardsToken,
        address _rewardsDistributor,
        uint256 _rewardsDuration
    ) public onlyOwner {
        require(rewardData[_rewardsToken].rewardsDuration == 0);
        rewardTokens.push(_rewardsToken);
        rewardData[_rewardsToken].rewardsDistributor = _rewardsDistributor;
        rewardData[_rewardsToken].rewardsDuration = _rewardsDuration;
    }

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

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

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

    function lastTimeRewardApplicable(
        address _rewardsToken
    ) public view returns (uint256) {
        return (block.timestamp < rewardData[_rewardsToken].periodFinish
            ? block.timestamp
            : rewardData[_rewardsToken].periodFinish);
    }

    function rewardPerToken(
        address _rewardsToken
    ) public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardData[_rewardsToken].rewardPerTokenStored;
        }
        return
            rewardData[_rewardsToken].rewardPerTokenStored +
            (((lastTimeRewardApplicable(_rewardsToken) -
                rewardData[_rewardsToken].lastUpdateTime) *
                rewardData[_rewardsToken].rewardRate) * 1e18) /
            _totalSupply;
    }

    function earned(
        address account,
        address _rewardsToken
    ) public view returns (uint256) {
        return
            ((_balances[account] *
                (rewardPerToken(_rewardsToken) -
                    userRewardPerTokenPaid[account][_rewardsToken])) / 1e18) +
            rewards[account][_rewardsToken];
    }

    function getRewardForDuration(
        address _rewardsToken
    ) external view returns (uint256) {
        return
            rewardData[_rewardsToken].rewardRate *
            rewardData[_rewardsToken].rewardsDuration;
    }

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

    function setRewardsDistributor(
        address _rewardsToken,
        address _rewardsDistributor
    ) external onlyOwner {
        rewardData[_rewardsToken].rewardsDistributor = _rewardsDistributor;
    }

    function stake(
        uint256 amount
    ) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");

        if (depositFee > 0) {
            uint256 _fee = (amount * depositFee) / 10000;
            stakingToken.safeTransferFrom(msg.sender, feeRecipient, _fee);
            amount = amount - _fee;
        }

        _totalSupply = _totalSupply + amount;
        _balances[msg.sender] = _balances[msg.sender] + amount;

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);

        emit Staked(msg.sender, amount);
    }

    function withdraw(
        uint256 amount
    ) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");

        _totalSupply = _totalSupply - amount;
        _balances[msg.sender] = _balances[msg.sender] - amount;

        if (withdrawFee > 0) {
            uint256 fee = (amount * withdrawFee) / 10000;
            stakingToken.safeTransfer(feeRecipient, fee);
            amount = amount - fee;
        }
        stakingToken.safeTransfer(msg.sender, amount);

        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        for (uint i; i < rewardTokens.length; i++) {
            address _rewardsToken = rewardTokens[i];
            uint256 reward = rewards[msg.sender][_rewardsToken];
            if (reward > 0) {
                rewards[msg.sender][_rewardsToken] = 0;
                IERC20(_rewardsToken).safeTransfer(msg.sender, reward);
                emit RewardPaid(msg.sender, _rewardsToken, reward);
            }
        }
    }


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

    function notifyRewardAmount(
        address _rewardsToken,
        uint256 reward
    ) external updateReward(address(0)) {
        require(rewardData[_rewardsToken].rewardsDistributor == msg.sender);
        // handle the transfer of reward tokens via `transferFrom` to reduce the number
        // of transactions required and ensure correctness of the reward amount
        IERC20(_rewardsToken).safeTransferFrom(
            msg.sender,
            address(this),
            reward
        );

        if (block.timestamp >= rewardData[_rewardsToken].periodFinish) {
            rewardData[_rewardsToken].rewardRate =
                reward /
                (rewardData[_rewardsToken].rewardsDuration);
        } else {
            uint256 remaining = rewardData[_rewardsToken].periodFinish -
                (block.timestamp);
            uint256 leftover = remaining *
                (rewardData[_rewardsToken].rewardRate);
            rewardData[_rewardsToken].rewardRate =
                (reward + leftover) /
                (rewardData[_rewardsToken].rewardsDuration);
        }

        rewardData[_rewardsToken].lastUpdateTime = block.timestamp;
        rewardData[_rewardsToken].periodFinish =
            block.timestamp +
            (rewardData[_rewardsToken].rewardsDuration);
        emit RewardAdded(reward);
    }

    function recoverERC20(
        address tokenAddress,
        uint256 tokenAmount
    ) external onlyOwner {
        require(
            tokenAddress != address(stakingToken),
            "Cannot withdraw staking token"
        );
        require(
            rewardData[tokenAddress].lastUpdateTime == 0,
            "Cannot withdraw reward token"
        );
        IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(
        address _rewardsToken,
        uint256 _rewardsDuration
    ) external  {
        require(
            block.timestamp > rewardData[_rewardsToken].periodFinish,
            "Reward period still active"
        );
        require(rewardData[_rewardsToken].rewardsDistributor == msg.sender);
        require(_rewardsDuration > 0, "Reward duration must be non-zero");
        rewardData[_rewardsToken].rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(
            _rewardsToken,
            rewardData[_rewardsToken].rewardsDuration
        );
    }

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

    modifier updateReward(address account) {
        for (uint i; i < rewardTokens.length; i++) {
            address token = rewardTokens[i];
            rewardData[token].rewardPerTokenStored = rewardPerToken(token);
            rewardData[token].lastUpdateTime = lastTimeRewardApplicable(token);
            if (account != address(0)) {
                rewards[account][token] = earned(account, token);
                userRewardPerTokenPaid[account][token] = rewardData[token]
                    .rewardPerTokenStored;
            }
        }
        _;
    }

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

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(
        address indexed user,
        address indexed rewardsToken,
        uint256 reward
    );
    event RewardsDurationUpdated(address token, uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event FeeRecipientUpdated(address oldFeeRecipient, address newFeeRecipient);
    event DepositFeeUpdated(uint256 oldDepositFee, uint256 newDepositFee);
    event WithdrawFeeUpdated(uint256 oldWithdrawFee, uint256 newWithdrawFee);
}

File 2 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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 10 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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 An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @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.encodeCall(token.approve, (spender, value));

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

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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(token).code.length > 0;
    }
}

File 6 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 7 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 9 of 10 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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 10 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "contracts/MultiRewards.sol/=src/MultiRewards.sol/",
    "@openzeppelin/=lib/@openzeppelin/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldDepositFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDepositFee","type":"uint256"}],"name":"DepositFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldFeeRecipient","type":"address"},{"indexed":false,"internalType":"address","name":"newFeeRecipient","type":"address"}],"name":"FeeRecipientUpdated","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":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldWithdrawFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newWithdrawFee","type":"uint256"}],"name":"WithdrawFeeUpdated","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":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_rewardsDistributor","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"addReward","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":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"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":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardData","outputs":[{"internalType":"address","name":"rewardsDistributor","type":"address"},{"internalType":"uint256","name":"rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"setDepositFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_rewardsDistributor","type":"address"}],"name":"setRewardsDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"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"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526000600b556000600c553480156200001b57600080fd5b5060405162001c2838038062001c288339810160408190526200003e9162000109565b60016000819055805460ff1916905533806200007457604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200007f81620000af565b50600280546001600160a01b039092166001600160a01b0319928316179055600a8054909116331790556200013b565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200011c57600080fd5b81516001600160a01b03811681146200013457600080fd5b9392505050565b611add806200014b6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806372f702f31161010f578063bcd11014116100a2578063e74b981b11610071578063e74b981b146104b2578063e941fa78146104c5578063f1229777146104ce578063f2fde38b146104e157600080fd5b8063bcd1101414610459578063c4ae31681461046c578063d0ed26ae14610474578063e70b9e271461048757600080fd5b8063a694fc3a116100de578063a694fc3a14610417578063b66503cf1461042a578063b6ac642a1461043d578063bc063e1a1461045057600080fd5b806372f702f3146103c85780637bb7bed1146103db5780638980f11f146103ee5780638da5cb5b1461040157600080fd5b806348e5d9f81161018757806367a527931161015657806367a52793146103635780637035ab981461036c57806370a0823114610397578063715018a6146103c057600080fd5b806348e5d9f8146102a0578063490ae210146103275780635c975abb1461033a578063638634ee1461035057600080fd5b80632e1a7d4d116101c35780632e1a7d4d1461025f5780633d18b912146102725780633f695b451461027a578063469048401461028d57600080fd5b806318160ddd146101f55780631fe4a6861461020c578063211dc32d146102375780632378bea61461024a575b600080fd5b6007545b6040519081526020015b60405180910390f35b60095461021f906001600160a01b031681565b6040516001600160a01b039091168152602001610203565b6101f96102453660046118fe565b6104f4565b61025d610258366004611931565b61058e565b005b61025d61026d36600461195b565b6106cf565b61025d6108f5565b61025d6102883660046118fe565b610ad1565b600a5461021f906001600160a01b031681565b6102f06102ae366004611974565b60036020819052600091825260409091208054600182015460028301549383015460048401546005909401546001600160a01b03909316949193919290919086565b604080516001600160a01b0390971687526020870195909552938501929092526060840152608083015260a082015260c001610203565b61025d61033536600461195b565b610b07565b60015460ff166040519015158152602001610203565b6101f961035e366004611974565b610b91565b6101f9600b5481565b6101f961037a3660046118fe565b600560209081526000928352604080842090915290825290205481565b6101f96103a5366004611974565b6001600160a01b031660009081526008602052604090205490565b61025d610bdb565b60025461021f906001600160a01b031681565b61021f6103e936600461195b565b610bed565b61025d6103fc366004611931565b610c17565b60015461010090046001600160a01b031661021f565b61025d61042536600461195b565b610d4b565b61025d610438366004611931565b610f6c565b61025d61044b36600461195b565b61122b565b6101f96101f481565b6101f9610467366004611974565b6112b5565b61025d6112e1565b61025d61048236600461198f565b611304565b6101f96104953660046118fe565b600660209081526000928352604080842090915290825290205481565b61025d6104c0366004611974565b6113a0565b6101f9600c5481565b6101f96104dc366004611974565b61145b565b61025d6104ef366004611974565b61150d565b6001600160a01b038083166000818152600660209081526040808320948616808452948252808320549383526005825280832094835293905291822054670de0b6b3a7640000906105448561145b565b61054e91906119e1565b6001600160a01b03861660009081526008602052604090205461057191906119f4565b61057b9190611a0b565b6105859190611a2d565b90505b92915050565b6001600160a01b03821660009081526003602052604090206002015442116105fd5760405162461bcd60e51b815260206004820152601a60248201527f52657761726420706572696f64207374696c6c2061637469766500000000000060448201526064015b60405180910390fd5b6001600160a01b0382811660009081526003602052604090205416331461062357600080fd5b600081116106735760405162461bcd60e51b815260206004820181905260248201527f526577617264206475726174696f6e206d757374206265206e6f6e2d7a65726f60448201526064016105f4565b6001600160a01b038216600081815260036020908152604091829020600101849055815192835282018390527fad2f86b01ed93b4b3a150d448c61a4f5d8d38075d3c0c64cc0a26fd6e1f4954591015b60405180910390a15050565b6106d7611548565b3360005b6004548110156107c6576000600482815481106106fa576106fa611a40565b6000918252602090912001546001600160a01b0316905061071a8161145b565b6001600160a01b03821660009081526003602052604090206005015561073f81610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156107bd5761077083826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b506001016106db565b506000821161080b5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064016105f4565b8160075461081991906119e1565b600755336000908152600860205260409020546108379083906119e1565b33600090815260086020526040902055600c541561089a576000612710600c548461086291906119f4565b61086c9190611a0b565b600a5460025491925061088c916001600160a01b03908116911683611572565b61089681846119e1565b9250505b6002546108b1906001600160a01b03163384611572565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2506108f26001600055565b50565b6108fd611548565b3360005b6004548110156109ec5760006004828154811061092057610920611a40565b6000918252602090912001546001600160a01b031690506109408161145b565b6001600160a01b03821660009081526003602052604090206005015561096581610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156109e35761099683826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610901565b5060005b600454811015610ac357600060048281548110610a0f57610a0f611a40565b60009182526020808320909101543383526006825260408084206001600160a01b03909216808552919092529120549091508015610ab9573360008181526006602090815260408083206001600160a01b0387168085529252822091909155610a789183611572565b6040518181526001600160a01b0383169033907f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9060200160405180910390a35b50506001016109f0565b5050610acf6001600055565b565b610ad96115d6565b6001600160a01b03918216600090815260036020526040902080546001600160a01b03191691909216179055565b610b0f6115d6565b6101f4811115610b505760405162461bcd60e51b815260206004820152600c60248201526b0cccaca40e8dede40d0d2ced60a31b60448201526064016105f4565b600b5460408051918252602082018390527f828cf983933545af35b9ba46eec951db1cb4c5433c3ec403aeced2963c264790910160405180910390a1600b55565b6001600160a01b0381166000908152600360205260408120600201544210610bd4576001600160a01b038216600090815260036020526040902060020154610588565b4292915050565b610be36115d6565b610acf6000611609565b60048181548110610bfd57600080fd5b6000918252602090912001546001600160a01b0316905081565b610c1f6115d6565b6002546001600160a01b0390811690831603610c7d5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e00000060448201526064016105f4565b6001600160a01b03821660009081526003602052604090206004015415610ce65760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e0000000060448201526064016105f4565b600154610d0c9061010090046001600160a01b03166001600160a01b0384169083611572565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2891016106c3565b610d53611548565b610d5b611663565b3360005b600454811015610e4a57600060048281548110610d7e57610d7e611a40565b6000918252602090912001546001600160a01b03169050610d9e8161145b565b6001600160a01b038216600090815260036020526040902060050155610dc381610b91565b6001600160a01b03808316600090815260036020526040902060040191909155831615610e4157610df483826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610d5f565b5060008211610e8c5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b60448201526064016105f4565b600b5415610ee1576000612710600b5484610ea791906119f4565b610eb19190611a0b565b600a54600254919250610ed3916001600160a01b039081169133911684611687565b610edd81846119e1565b9250505b81600754610eef9190611a2d565b60075533600090815260086020526040902054610f0d908390611a2d565b33600081815260086020526040902091909155600254610f3a916001600160a01b03909116903085611687565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016108df565b6000805b60045481101561105b57600060048281548110610f8f57610f8f611a40565b6000918252602090912001546001600160a01b03169050610faf8161145b565b6001600160a01b038216600090815260036020526040902060050155610fd481610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156110525761100583826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610f70565b506001600160a01b0383811660009081526003602052604090205416331461108257600080fd5b6110976001600160a01b038416333085611687565b6001600160a01b0383166000908152600360205260409020600201544210611101576001600160a01b0383166000908152600360205260409020600101546110df9083611a0b565b6001600160a01b038416600090815260036020819052604090912001556111a5565b6001600160a01b0383166000908152600360205260408120600201546111289042906119e1565b6001600160a01b0385166000908152600360208190526040822001549192509061115290836119f4565b6001600160a01b03861660009081526003602052604090206001015490915061117b8286611a2d565b6111859190611a0b565b6001600160a01b0386166000908152600360208190526040909120015550505b6001600160a01b038316600090815260036020526040902042600482018190556001909101546111d491611a2d565b6001600160a01b03841660009081526003602090815260409182902060020192909255518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d910160405180910390a1505050565b6112336115d6565b6101f48111156112745760405162461bcd60e51b815260206004820152600c60248201526b0cccaca40e8dede40d0d2ced60a31b60448201526064016105f4565b600c5460408051918252602082018390527f733071ab8253b372ed26a6d1b04aec71c4bfcd209c93397df32bb77478cdd2c8910160405180910390a1600c55565b6001600160a01b03811660009081526003602081905260408220600181015491015461058891906119f4565b6112e96115d6565b60015460ff16156112fc57610acf6116c6565b610acf611718565b61130c6115d6565b6001600160a01b0383166000908152600360205260409020600101541561133257600080fd5b6004805460018181019092557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b039586166001600160a01b031991821681179092556000918252600360205260409091208054949095169316929092178355910155565b6113a86115d6565b6001600160a01b0381166113f25760405162461bcd60e51b81526020600482015260116024820152700666565526563697069656e74206973203607c1b60448201526064016105f4565b600a54604080516001600160a01b03928316815291831660208301527faaebcf1bfa00580e41d966056b48521fa9f202645c86d4ddf28113e617c1b1d3910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600060075460000361148657506001600160a01b031660009081526003602052604090206005015490565b6007546001600160a01b0383166000908152600360208190526040909120908101546004909101546114b785610b91565b6114c191906119e1565b6114cb91906119f4565b6114dd90670de0b6b3a76400006119f4565b6114e79190611a0b565b6001600160a01b0383166000908152600360205260409020600501546105889190611a2d565b6115156115d6565b6001600160a01b03811661153f57604051631e4fbdf760e01b8152600060048201526024016105f4565b6108f281611609565b60026000540361156b57604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516001600160a01b038381166024830152604482018390526115d191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611753565b505050565b6001546001600160a01b03610100909104163314610acf5760405163118cdaa760e01b81523360048201526024016105f4565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460ff1615610acf5760405163d93c066560e01b815260040160405180910390fd5b6040516001600160a01b0384811660248301528381166044830152606482018390526116c09186918216906323b872dd9060840161159f565b50505050565b6116ce6117b6565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611720611663565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336116fb565b60006117686001600160a01b038416836117d9565b9050805160001415801561178d57508080602001905181019061178b9190611a56565b155b156115d157604051635274afe760e01b81526001600160a01b03841660048201526024016105f4565b60015460ff16610acf57604051638dfc202b60e01b815260040160405180910390fd5b60606105858383600084600080856001600160a01b031684866040516117ff9190611a78565b60006040518083038185875af1925050503d806000811461183c576040519150601f19603f3d011682016040523d82523d6000602084013e611841565b606091505b509150915061185186838361185d565b925050505b9392505050565b6060826118725761186d826118b9565b611856565b815115801561188957506001600160a01b0384163b155b156118b257604051639996b31560e01b81526001600160a01b03851660048201526024016105f4565b5080611856565b8051156118c95780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b03811681146118f957600080fd5b919050565b6000806040838503121561191157600080fd5b61191a836118e2565b9150611928602084016118e2565b90509250929050565b6000806040838503121561194457600080fd5b61194d836118e2565b946020939093013593505050565b60006020828403121561196d57600080fd5b5035919050565b60006020828403121561198657600080fd5b610585826118e2565b6000806000606084860312156119a457600080fd5b6119ad846118e2565b92506119bb602085016118e2565b9150604084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b81810381811115610588576105886119cb565b8082028115828204841417610588576105886119cb565b600082611a2857634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610588576105886119cb565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a6857600080fd5b8151801515811461185657600080fd5b6000825160005b81811015611a995760208186018101518583015201611a7f565b50600092019182525091905056fea26469706673582212201d180af7ece0cd18eec28370e422cf721813b805e9dca43f5e6c49956eafd84c64736f6c634300081800330000000000000000000000005138ebe7acaae209d6f0b651e4d02a67ef61f436

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c806372f702f31161010f578063bcd11014116100a2578063e74b981b11610071578063e74b981b146104b2578063e941fa78146104c5578063f1229777146104ce578063f2fde38b146104e157600080fd5b8063bcd1101414610459578063c4ae31681461046c578063d0ed26ae14610474578063e70b9e271461048757600080fd5b8063a694fc3a116100de578063a694fc3a14610417578063b66503cf1461042a578063b6ac642a1461043d578063bc063e1a1461045057600080fd5b806372f702f3146103c85780637bb7bed1146103db5780638980f11f146103ee5780638da5cb5b1461040157600080fd5b806348e5d9f81161018757806367a527931161015657806367a52793146103635780637035ab981461036c57806370a0823114610397578063715018a6146103c057600080fd5b806348e5d9f8146102a0578063490ae210146103275780635c975abb1461033a578063638634ee1461035057600080fd5b80632e1a7d4d116101c35780632e1a7d4d1461025f5780633d18b912146102725780633f695b451461027a578063469048401461028d57600080fd5b806318160ddd146101f55780631fe4a6861461020c578063211dc32d146102375780632378bea61461024a575b600080fd5b6007545b6040519081526020015b60405180910390f35b60095461021f906001600160a01b031681565b6040516001600160a01b039091168152602001610203565b6101f96102453660046118fe565b6104f4565b61025d610258366004611931565b61058e565b005b61025d61026d36600461195b565b6106cf565b61025d6108f5565b61025d6102883660046118fe565b610ad1565b600a5461021f906001600160a01b031681565b6102f06102ae366004611974565b60036020819052600091825260409091208054600182015460028301549383015460048401546005909401546001600160a01b03909316949193919290919086565b604080516001600160a01b0390971687526020870195909552938501929092526060840152608083015260a082015260c001610203565b61025d61033536600461195b565b610b07565b60015460ff166040519015158152602001610203565b6101f961035e366004611974565b610b91565b6101f9600b5481565b6101f961037a3660046118fe565b600560209081526000928352604080842090915290825290205481565b6101f96103a5366004611974565b6001600160a01b031660009081526008602052604090205490565b61025d610bdb565b60025461021f906001600160a01b031681565b61021f6103e936600461195b565b610bed565b61025d6103fc366004611931565b610c17565b60015461010090046001600160a01b031661021f565b61025d61042536600461195b565b610d4b565b61025d610438366004611931565b610f6c565b61025d61044b36600461195b565b61122b565b6101f96101f481565b6101f9610467366004611974565b6112b5565b61025d6112e1565b61025d61048236600461198f565b611304565b6101f96104953660046118fe565b600660209081526000928352604080842090915290825290205481565b61025d6104c0366004611974565b6113a0565b6101f9600c5481565b6101f96104dc366004611974565b61145b565b61025d6104ef366004611974565b61150d565b6001600160a01b038083166000818152600660209081526040808320948616808452948252808320549383526005825280832094835293905291822054670de0b6b3a7640000906105448561145b565b61054e91906119e1565b6001600160a01b03861660009081526008602052604090205461057191906119f4565b61057b9190611a0b565b6105859190611a2d565b90505b92915050565b6001600160a01b03821660009081526003602052604090206002015442116105fd5760405162461bcd60e51b815260206004820152601a60248201527f52657761726420706572696f64207374696c6c2061637469766500000000000060448201526064015b60405180910390fd5b6001600160a01b0382811660009081526003602052604090205416331461062357600080fd5b600081116106735760405162461bcd60e51b815260206004820181905260248201527f526577617264206475726174696f6e206d757374206265206e6f6e2d7a65726f60448201526064016105f4565b6001600160a01b038216600081815260036020908152604091829020600101849055815192835282018390527fad2f86b01ed93b4b3a150d448c61a4f5d8d38075d3c0c64cc0a26fd6e1f4954591015b60405180910390a15050565b6106d7611548565b3360005b6004548110156107c6576000600482815481106106fa576106fa611a40565b6000918252602090912001546001600160a01b0316905061071a8161145b565b6001600160a01b03821660009081526003602052604090206005015561073f81610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156107bd5761077083826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b506001016106db565b506000821161080b5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064016105f4565b8160075461081991906119e1565b600755336000908152600860205260409020546108379083906119e1565b33600090815260086020526040902055600c541561089a576000612710600c548461086291906119f4565b61086c9190611a0b565b600a5460025491925061088c916001600160a01b03908116911683611572565b61089681846119e1565b9250505b6002546108b1906001600160a01b03163384611572565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2506108f26001600055565b50565b6108fd611548565b3360005b6004548110156109ec5760006004828154811061092057610920611a40565b6000918252602090912001546001600160a01b031690506109408161145b565b6001600160a01b03821660009081526003602052604090206005015561096581610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156109e35761099683826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610901565b5060005b600454811015610ac357600060048281548110610a0f57610a0f611a40565b60009182526020808320909101543383526006825260408084206001600160a01b03909216808552919092529120549091508015610ab9573360008181526006602090815260408083206001600160a01b0387168085529252822091909155610a789183611572565b6040518181526001600160a01b0383169033907f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9060200160405180910390a35b50506001016109f0565b5050610acf6001600055565b565b610ad96115d6565b6001600160a01b03918216600090815260036020526040902080546001600160a01b03191691909216179055565b610b0f6115d6565b6101f4811115610b505760405162461bcd60e51b815260206004820152600c60248201526b0cccaca40e8dede40d0d2ced60a31b60448201526064016105f4565b600b5460408051918252602082018390527f828cf983933545af35b9ba46eec951db1cb4c5433c3ec403aeced2963c264790910160405180910390a1600b55565b6001600160a01b0381166000908152600360205260408120600201544210610bd4576001600160a01b038216600090815260036020526040902060020154610588565b4292915050565b610be36115d6565b610acf6000611609565b60048181548110610bfd57600080fd5b6000918252602090912001546001600160a01b0316905081565b610c1f6115d6565b6002546001600160a01b0390811690831603610c7d5760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e00000060448201526064016105f4565b6001600160a01b03821660009081526003602052604090206004015415610ce65760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e0000000060448201526064016105f4565b600154610d0c9061010090046001600160a01b03166001600160a01b0384169083611572565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2891016106c3565b610d53611548565b610d5b611663565b3360005b600454811015610e4a57600060048281548110610d7e57610d7e611a40565b6000918252602090912001546001600160a01b03169050610d9e8161145b565b6001600160a01b038216600090815260036020526040902060050155610dc381610b91565b6001600160a01b03808316600090815260036020526040902060040191909155831615610e4157610df483826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610d5f565b5060008211610e8c5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b60448201526064016105f4565b600b5415610ee1576000612710600b5484610ea791906119f4565b610eb19190611a0b565b600a54600254919250610ed3916001600160a01b039081169133911684611687565b610edd81846119e1565b9250505b81600754610eef9190611a2d565b60075533600090815260086020526040902054610f0d908390611a2d565b33600081815260086020526040902091909155600254610f3a916001600160a01b03909116903085611687565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016108df565b6000805b60045481101561105b57600060048281548110610f8f57610f8f611a40565b6000918252602090912001546001600160a01b03169050610faf8161145b565b6001600160a01b038216600090815260036020526040902060050155610fd481610b91565b6001600160a01b038083166000908152600360205260409020600401919091558316156110525761100583826104f4565b6001600160a01b0380851660008181526006602090815260408083209487168084529482528083209590955560038152848220600590810154938352815284822093825292909252919020555b50600101610f70565b506001600160a01b0383811660009081526003602052604090205416331461108257600080fd5b6110976001600160a01b038416333085611687565b6001600160a01b0383166000908152600360205260409020600201544210611101576001600160a01b0383166000908152600360205260409020600101546110df9083611a0b565b6001600160a01b038416600090815260036020819052604090912001556111a5565b6001600160a01b0383166000908152600360205260408120600201546111289042906119e1565b6001600160a01b0385166000908152600360208190526040822001549192509061115290836119f4565b6001600160a01b03861660009081526003602052604090206001015490915061117b8286611a2d565b6111859190611a0b565b6001600160a01b0386166000908152600360208190526040909120015550505b6001600160a01b038316600090815260036020526040902042600482018190556001909101546111d491611a2d565b6001600160a01b03841660009081526003602090815260409182902060020192909255518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d910160405180910390a1505050565b6112336115d6565b6101f48111156112745760405162461bcd60e51b815260206004820152600c60248201526b0cccaca40e8dede40d0d2ced60a31b60448201526064016105f4565b600c5460408051918252602082018390527f733071ab8253b372ed26a6d1b04aec71c4bfcd209c93397df32bb77478cdd2c8910160405180910390a1600c55565b6001600160a01b03811660009081526003602081905260408220600181015491015461058891906119f4565b6112e96115d6565b60015460ff16156112fc57610acf6116c6565b610acf611718565b61130c6115d6565b6001600160a01b0383166000908152600360205260409020600101541561133257600080fd5b6004805460018181019092557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b039586166001600160a01b031991821681179092556000918252600360205260409091208054949095169316929092178355910155565b6113a86115d6565b6001600160a01b0381166113f25760405162461bcd60e51b81526020600482015260116024820152700666565526563697069656e74206973203607c1b60448201526064016105f4565b600a54604080516001600160a01b03928316815291831660208301527faaebcf1bfa00580e41d966056b48521fa9f202645c86d4ddf28113e617c1b1d3910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600060075460000361148657506001600160a01b031660009081526003602052604090206005015490565b6007546001600160a01b0383166000908152600360208190526040909120908101546004909101546114b785610b91565b6114c191906119e1565b6114cb91906119f4565b6114dd90670de0b6b3a76400006119f4565b6114e79190611a0b565b6001600160a01b0383166000908152600360205260409020600501546105889190611a2d565b6115156115d6565b6001600160a01b03811661153f57604051631e4fbdf760e01b8152600060048201526024016105f4565b6108f281611609565b60026000540361156b57604051633ee5aeb560e01b815260040160405180910390fd5b6002600055565b6040516001600160a01b038381166024830152604482018390526115d191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611753565b505050565b6001546001600160a01b03610100909104163314610acf5760405163118cdaa760e01b81523360048201526024016105f4565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460ff1615610acf5760405163d93c066560e01b815260040160405180910390fd5b6040516001600160a01b0384811660248301528381166044830152606482018390526116c09186918216906323b872dd9060840161159f565b50505050565b6116ce6117b6565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611720611663565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336116fb565b60006117686001600160a01b038416836117d9565b9050805160001415801561178d57508080602001905181019061178b9190611a56565b155b156115d157604051635274afe760e01b81526001600160a01b03841660048201526024016105f4565b60015460ff16610acf57604051638dfc202b60e01b815260040160405180910390fd5b60606105858383600084600080856001600160a01b031684866040516117ff9190611a78565b60006040518083038185875af1925050503d806000811461183c576040519150601f19603f3d011682016040523d82523d6000602084013e611841565b606091505b509150915061185186838361185d565b925050505b9392505050565b6060826118725761186d826118b9565b611856565b815115801561188957506001600160a01b0384163b155b156118b257604051639996b31560e01b81526001600160a01b03851660048201526024016105f4565b5080611856565b8051156118c95780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b03811681146118f957600080fd5b919050565b6000806040838503121561191157600080fd5b61191a836118e2565b9150611928602084016118e2565b90509250929050565b6000806040838503121561194457600080fd5b61194d836118e2565b946020939093013593505050565b60006020828403121561196d57600080fd5b5035919050565b60006020828403121561198657600080fd5b610585826118e2565b6000806000606084860312156119a457600080fd5b6119ad846118e2565b92506119bb602085016118e2565b9150604084013590509250925092565b634e487b7160e01b600052601160045260246000fd5b81810381811115610588576105886119cb565b8082028115828204841417610588576105886119cb565b600082611a2857634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610588576105886119cb565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611a6857600080fd5b8151801515811461185657600080fd5b6000825160005b81811015611a995760208186018101518583015201611a7f565b50600092019182525091905056fea26469706673582212201d180af7ece0cd18eec28370e422cf721813b805e9dca43f5e6c49956eafd84c64736f6c63430008180033

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

0000000000000000000000005138ebe7acaae209d6f0b651e4d02a67ef61f436

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x5138EBe7acaAE209d6F0B651E4D02a67EF61f436

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005138ebe7acaae209d6f0b651e4d02a67ef61f436


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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