Contract 0x5B9a0459609F8437D7845C0bd1ab7651f33d2618 1

 
 
Txn Hash
Method
Block
From
To
Value
0x9f7422902069b23c9c1c36025e86c9dc6df0f63964a468c733577a808cd41999Get Reward159805612022-11-16 5:40:4717 days 15 hrs ago0x0c6ac3fcea667fd6c62483ce1dbbce6f6ce0fb1f IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00122529 13.56314079
0xaa4e0c426e711af1cbf4b58407e1ace5b7f579dfb665d30f1735f391e0aabe98Get Reward158448942022-10-28 6:54:1136 days 14 hrs ago0xe3205002974e260bf92574357cb4b8306f5809c7 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.0007439 9.49442932
0xad3d0edd9635678fbb4a5b8dfa8464ca59f8f8124619e797007b30b3621659dbWithdraw157708982022-10-17 22:46:1146 days 22 hrs ago0xddf649ae14f87fcaeebc1d9af8dd1e2d1e182234 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00535912 25.92935016
0x83e48ef0200fcdf9af93d9949df33892ced1b3a9ab9617f3f3ae6732f0489124Withdraw157708942022-10-17 22:45:2346 days 22 hrs agoENS Name gldn007.eth IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00534163 25.84468465
0x0949ff2384acc1a6545fa7642d7316cbe73c4368a5967338990f3b18945c8082Withdraw157469432022-10-14 14:27:4750 days 7 hrs ago0x900bcc02c834b1e3d6e1c50aeee7a84df6b4e3f7 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00442722 21.42047411
0x7e586d5ae9b494eaec4eee09510bff08174df56f233ab8da112e6cb208fe986dWithdraw157434832022-10-14 2:51:5950 days 18 hrs ago0xc8e6720196facd7a8ef08bd14ca7cfa0ed1a1bc4 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00232491 12.63666085
0xd6d35b7568b001c54c0f6b36dde7e095f863c2ae672bdd14e079388bbe9c74e7Get Reward157434772022-10-14 2:50:4750 days 18 hrs ago0xc8e6720196facd7a8ef08bd14ca7cfa0ed1a1bc4 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00119221 10.89379714
0x06fff514ea5e6b0f3b2af3919e481a481524c61bf49d55a6423466814c157eb9Withdraw157291652022-10-12 2:52:2352 days 18 hrs ago0x0a3b8b69a5f3c6f69189f1b4a48e5ff35681d16d IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00633297 34.42169227
0xa70ecabcfcc9b5e2bb0752294d85aeacfeed1fe48583347021cc844b7d9709d3Withdraw157226422022-10-11 5:00:4753 days 16 hrs ago0x06cd1f977aa48d5d295de262583c6376097c4874 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00522191 25.2654437
0x6f1c6ed22fd3e5a1129e1d0881a2df28723d0b111fb63d26c962e00bb0b2858cGet Reward157113592022-10-09 15:13:4755 days 6 hrs ago0x902e53a4200b5164f7bee8b164babfc3bc109762 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00181442 23.15735261
0xeed589541e78705d54242ff8af11faae2c4a567fd2c744c09878306d2342918eWithdraw156986432022-10-07 20:38:3557 days 58 mins ago0x463e1db1052334847197cf91eefc38e17b87e4af IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00142998 7.77241843
0x3a9c730206d5cbbbcf6611f4ca256937fd43bfada80cef11867406b2d7996032Get Reward156986422022-10-07 20:38:2357 days 58 mins ago0x463e1db1052334847197cf91eefc38e17b87e4af IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00055008 7.02065564
0x068b465a9a5af056ac93528e7b85571bed4ac70e15643ed0ed5fe52f63fa8617Get Reward156930302022-10-07 1:46:4757 days 19 hrs ago0x9161b22095f993307c9c7aab297a722d829ad9e2 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00060993 5.57325006
0x3682be9b7975e9564632a800dce34bad0b5e3ff2782d8b75aa2e6b9ad3913755Withdraw156873542022-10-06 6:44:1158 days 14 hrs ago0xa0e2a4a5a8d4abb8b65f42a58b862d3a84bedd9e IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00216318 10.46623617
0x8cf5da0152a1f714ba5d7f9f92bfd784da5f9daedbd2079aaec79e67ed10130cWithdraw156863072022-10-06 3:14:1158 days 18 hrs ago0xb56f79f3f466d6757a1a586c5a63d2edb8ebd4f6 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00147185 8
0x4710f4f8f2e279cffabacdb3ecb4d2307f4ecb63019a4e3eb5a11d81d3b2c0dcGet Reward156863032022-10-06 3:13:2358 days 18 hrs ago0xb56f79f3f466d6757a1a586c5a63d2edb8ebd4f6 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00088527 8.08909636
0x155b0f971d739f656315cc77d582b0fa3a5a926633c51d71d1693ab5cbd9a223Withdraw156843652022-10-05 20:43:4759 days 53 mins ago0x7cd2f831e5f43f0d04514b6463438436f27f6e12 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00306022 16.63219136
0x732d4f92ac677b413e7d77267461bc70a29548c20007f009b90adf4aee795b53Stake156817642022-10-05 12:00:5959 days 9 hrs ago0xaba1dce73280f33de2c31c0148d22e178d2f9acb IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00220202 9.21979383
0xee06df1da73f030bbc3f19cf1627d5b6ff5bc415b1ad520970f437df5fa4f443Withdraw156765662022-10-04 18:29:5960 days 3 hrs ago0x6fc10317a76766e6703f249faedc68eacb7e412c IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00249992 13.18650409
0xd983d2387b865e4984d9333dc22140fd4396496b502a4611364671e8704ee0cbStake156725982022-10-04 5:09:5960 days 16 hrs ago0x0a3b8b69a5f3c6f69189f1b4a48e5ff35681d16d IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.006064 11.20529087
0x4a9157f724b6a0c3f45d8e1ecbac4e34216c268f54264ef7ea6b5cf353ad3453Withdraw156575612022-10-02 2:46:2362 days 18 hrs ago0xe4bfce0a12f5c55ba865784a5f6a55b57dbbdeaa IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00074268 5
0xd107b0157625a507301e9c187e6a08ee3d0ef2517c060ee06cd60ac0261cc18fGet Reward156524132022-10-01 9:27:4763 days 12 hrs ago0x9517be959efa3d172df9853ac9f861442a14ab62 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00054879 7.00426888
0xa07471dd81a72549584298a568fe505a89bccd7c77c1e12a10e85355c05c9000Withdraw156481482022-09-30 19:09:4764 days 2 hrs ago0xbaf16b7f547d956cd472e7485a27024fc2517d23 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00277625 14.6440829
0x6e93d37b9380426319ab848138f7b6c63e7b385fb40ca15599cd1b27c8a84647Withdraw156369182022-09-29 5:28:4765 days 16 hrs ago0x2a3aa5f83f8dfd1d590fac220bea3ef37b4b9678 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.0053664 10.60097753
0x0cc18975071668fd8b11d906760a82db65fac3f971803143f0699e4d32fbca82Get Reward156369132022-09-29 5:27:4765 days 16 hrs ago0x2a3aa5f83f8dfd1d590fac220bea3ef37b4b9678 IN  0x5b9a0459609f8437d7845c0bd1ab7651f33d26180 Ether0.00116883 10.68016506
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiRewardsStake

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion
File 1 of 9 : MultiRewardsStake.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./helpers/ReentrancyGuard.sol";
import "./helpers/Ownable.sol";
import "./interfaces/IERC20.sol";
import "./libraries/Math.sol";
import "./libraries/SafeMath.sol";
import "./libraries/SafeERC20.sol";

//solhint-disable not-rely-on-time
contract MultiRewardsStake is ReentrancyGuard, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Base staking info
    IERC20 public stakingToken;
    uint256 public periodFinish;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    
    // User reward info
    mapping(address => mapping (address => uint256)) private _userRewardPerTokenPaid;
    mapping(address => mapping (address => uint256)) private _rewards;

    // Reward token data
    uint256 private _totalRewardTokens;
    mapping (uint => RewardToken) private _rewardTokens;
    mapping (address => uint) private _rewardTokenToIndex;

    // User deposit data
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    // Store reward token data
    struct RewardToken {
        address token;
        uint256 rewardRate;
        uint256 rewardPerTokenStored;
    }

    constructor(
        address[] memory rewardTokens_,
        address stakingToken_
    ) {
        stakingToken = IERC20(stakingToken_);
        _totalRewardTokens = rewardTokens_.length;

        for (uint i; i < rewardTokens_.length; i++) {
            _rewardTokens[i + 1] = RewardToken({
                token: rewardTokens_[i],
                rewardRate: 0,
                rewardPerTokenStored: 0
            });
            _rewardTokenToIndex[rewardTokens_[i]] = i + 1;
        }

        rewardsDuration = 14 days;
    }

    /* VIEWS */

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

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

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function totalRewardTokens() external view returns (uint256) {
        return _totalRewardTokens;
    }

    // Get reward rate for all tokens
    function rewardPerToken() public view returns (uint256[] memory) {
        uint256[] memory tokens = new uint256[](_totalRewardTokens);
        if (_totalSupply == 0) {
            for (uint i = 0; i < _totalRewardTokens; i++) {
                tokens[i] = _rewardTokens[i + 1].rewardPerTokenStored;
            }
        } else {
            for (uint i = 0; i < _totalRewardTokens; i++) {
                RewardToken storage rewardToken = _rewardTokens[i + 1];
                tokens[i] = rewardToken.rewardPerTokenStored.add(
                    lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardToken.rewardRate)
                    .mul(1e18)
                    .div(_totalSupply)
                );
            }
        }

        return tokens;
    }

    // Get reward rate for individual token
    function rewardForToken(address token) public view returns (uint256) {
        uint256 index = _rewardTokenToIndex[token];
        if (_totalSupply == 0) {
            return _rewardTokens[index].rewardPerTokenStored;
        } else {
            return _rewardTokens[index].rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                .sub(lastUpdateTime)
                .mul(_rewardTokens[index].rewardRate)
                .mul(1e18)
                .div(_totalSupply)
            );
        }
    }

    function getRewardTokens() public view returns (RewardToken[] memory) {
        RewardToken[] memory tokens = new RewardToken[](_totalRewardTokens);
        for (uint i = 0; i < _totalRewardTokens; i++) {
            tokens[i] = _rewardTokens[i + 1];
        }

        return tokens;
    }

    function earned(address account) public view returns (uint256[] memory) {
        uint256[] memory earnings = new uint256[](_totalRewardTokens);
        uint256[] memory tokenRewards = rewardPerToken();
        for (uint i = 0; i < _totalRewardTokens; i++) {
            address token = _rewardTokens[i + 1].token;
            earnings[i] = _balances[account]
                .mul(tokenRewards[i]
                    .sub(_userRewardPerTokenPaid[account][token])
                )
                .div(1e18)
                .add(_rewards[account][token]
            );
        }

        return earnings;
    }

    function getRewardForDuration() external view returns (uint256[] memory) {
        uint256[] memory currentRewards = new uint256[](_totalRewardTokens);
        for (uint i = 0; i < _totalRewardTokens; i++) {
            currentRewards[i] = _rewardTokens[i + 1].rewardRate.mul(rewardsDuration);
        }

        return currentRewards;
    }

    /* === MUTATIONS === */

    function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        uint256 currentBalance = stakingToken.balanceOf(address(this));
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        uint256 newBalance = stakingToken.balanceOf(address(this));
        uint256 supplyDiff = newBalance.sub(currentBalance);
        _totalSupply = _totalSupply.add(supplyDiff);
        _balances[msg.sender] = _balances[msg.sender].add(supplyDiff);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public 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 nonReentrant updateReward(msg.sender) {
        for (uint i = 0; i < _totalRewardTokens; i++) {
            uint256 currentReward = _rewards[msg.sender][_rewardTokens[i + 1].token];
            if (currentReward > 0) {
                _rewards[msg.sender][_rewardTokens[i + 1].token] = 0;
                IERC20(_rewardTokens[i + 1].token).safeTransfer(msg.sender, currentReward);
                emit RewardPaid(msg.sender, currentReward);
            }
        }
    }

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

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

    function depositRewardTokens(uint256[] memory amount) external onlyOwner {
        require(amount.length == _totalRewardTokens, "Wrong amounts");

        // uint256[] memory newRewards = new uint256[](_totalRewardTokens);
        for (uint i = 0; i < _totalRewardTokens; i++) {
            RewardToken storage rewardToken = _rewardTokens[i + 1];
            uint256 prevBalance = IERC20(rewardToken.token).balanceOf(address(this));
            IERC20(rewardToken.token).safeTransferFrom(msg.sender, address(this), amount[i]);
            uint reward = IERC20(rewardToken.token).balanceOf(address(this)).sub(prevBalance);
            if (block.timestamp >= periodFinish) {
                rewardToken.rewardRate = reward.div(rewardsDuration);
            } else {
                uint256 remaining = periodFinish.sub(block.timestamp);
                uint256 leftover = remaining.mul(rewardToken.rewardRate);
                rewardToken.rewardRate = reward.add(leftover).div(rewardsDuration);
            }

            uint256 balance = IERC20(rewardToken.token).balanceOf(address(this));
            require(rewardToken.rewardRate <= balance.div(rewardsDuration), "Reward too high");
            emit RewardAdded(reward);
        }

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);

        // notifyRewardAmount(newRewards);
    }

    function notifyRewardAmount(uint256[] memory reward) public onlyOwner updateReward(address(0)) {
        require(reward.length == _totalRewardTokens, "Wrong reward amounts");
        for (uint i = 0; i < _totalRewardTokens; i++) {
            RewardToken storage rewardToken = _rewardTokens[i + 1];
            if (block.timestamp >= periodFinish) {
                rewardToken.rewardRate = reward[i].div(rewardsDuration);
            } else {
                uint256 remaining = periodFinish.sub(block.timestamp);
                uint256 leftover = remaining.mul(rewardToken.rewardRate);
                rewardToken.rewardRate = reward[i].add(leftover).div(rewardsDuration);
            }

            uint256 balance = IERC20(rewardToken.token).balanceOf(address(this));
            require(rewardToken.rewardRate <= balance.div(rewardsDuration), "Reward too high");
            emit RewardAdded(reward[i]);
        }

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

    function addRewardToken(address token) external onlyOwner {
        require(_totalRewardTokens < 6, "Too many tokens");
        require(IERC20(token).balanceOf(address(this)) > 0, "Must prefund contract");

        // Increment total reward tokens
        _totalRewardTokens += 1;

        // Create new reward token record
        _rewardTokens[_totalRewardTokens] = RewardToken({
            token: token,
            rewardRate: 0,
            rewardPerTokenStored: 0
        });

        _rewardTokenToIndex[token] = _totalRewardTokens;

        uint256[] memory rewardAmounts = new uint256[](_totalRewardTokens);

        for (uint i = 0; i < _totalRewardTokens; i++) {
            if (i == _totalRewardTokens - 1) {
                rewardAmounts[i] = IERC20(token).balanceOf(address(this));
            }
        }

        notifyRewardAmount(rewardAmounts);
    }

    function removeRewardToken(address token) public onlyOwner updateReward(address(0)) {
        require(_totalRewardTokens > 1, "Cannot have 0 reward tokens");
        // Get the index of token to remove
        uint indexToDelete = _rewardTokenToIndex[token];

        // Start at index of token to remove. Remove token and move all later indices lower.
        for (uint i = indexToDelete; i <= _totalRewardTokens; i++) {
            // Get token of one later index
            RewardToken storage rewardToken = _rewardTokens[i + 1];

            // Overwrite existing index with index + 1 record
            _rewardTokens[i] = rewardToken;

            // Delete original
            delete _rewardTokens[i + 1];

            // Set new index
            _rewardTokenToIndex[rewardToken.token] = i;
        }

        _totalRewardTokens -= 1;
    }

    function emergencyWithdrawal(address token) external onlyOwner updateReward(address(0)) {
        uint256 balance = IERC20(token).balanceOf(address(this));
        require(balance > 0, "Contract holds no tokens");
        IERC20(token).transfer(owner(), balance);
        removeRewardToken(token);
    }

    /* === MODIFIERS === */

    modifier updateReward(address account) {
        uint256[] memory rewardsPerToken = rewardPerToken();
        uint256[] memory currentEarnings = earned(account);
        lastUpdateTime = lastTimeRewardApplicable();
        for (uint i = 0; i < _totalRewardTokens; i++) {
            RewardToken storage rewardToken = _rewardTokens[i + 1];
            rewardToken.rewardPerTokenStored = rewardsPerToken[i];
            if (account != address(0)) {
                _rewards[account][rewardToken.token] = currentEarnings[i];
                _userRewardPerTokenPaid[account][rewardToken.token] = rewardsPerToken[i];                
            }
        }
        _;
    }

    /* === EVENTS === */

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

File 2 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 3 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 4 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 amount of decimals in the token
     */
    function decimals() external view returns (uint256);

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

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

File 6 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 substraction 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 7 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "./Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"rewardTokens_","type":"address[]"},{"internalType":"address","name":"stakingToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"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":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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addRewardToken","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":"uint256[]","name":"amount","type":"uint256[]"}],"name":"depositRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"emergencyWithdrawal","outputs":[],"stateMutability":"nonpayable","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":"getRewardTokens","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"internalType":"struct MultiRewardsStake.RewardToken[]","name":"","type":"tuple[]"}],"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":"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":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rewardForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"totalRewardTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003b5c38038062003b5c83398101604081905262000034916200020a565b600160005562000044336200019b565b600280546001600160a01b0319166001600160a01b038316179055815160085560005b82518110156200018b5760405180606001604052808483815181106200009d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815260200160008152602001600081525060096000836001620000d29190620002f2565b81526020808201929092526040908101600020835181546001600160a01b0319166001600160a01b039091161781559183015160018084019190915592015160029091015562000124908290620002f2565b600a60008584815181106200014957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808062000182906200030d565b91505062000067565b5050621275006004555062000357565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200020557600080fd5b919050565b600080604083850312156200021d578182fd5b82516001600160401b038082111562000234578384fd5b818501915085601f83011262000248578384fd5b81516020828211156200025f576200025f62000341565b8160051b604051601f19603f8301168101818110868211171562000287576200028762000341565b604052838152828101945085830182870184018b1015620002a6578889fd5b8896505b84871015620002d357620002be81620001ed565b865260019690960195948301948301620002aa565b509650620002e59050878201620001ed565b9450505050509250929050565b600082198211156200030857620003086200032b565b500190565b60006000198214156200032457620003246200032b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6137f580620003676000396000f3fe608060405234801561001057600080fd5b50600436106101a25760003560e01c8063715018a6116100ee578063c4f59f9b11610097578063e71e7f7811610071578063e71e7f7814610359578063e9fad8ee1461036c578063ebe2b12b14610374578063f2fde38b1461037d57600080fd5b8063c4f59f9b14610333578063c8f33c9114610348578063cd3daf9d1461035157600080fd5b80638da5cb5b116100c85780638da5cb5b146102ef578063a54f5e0d1461030d578063a694fc3a1461032057600080fd5b8063715018a61461029a57806372f702f3146102a257806380faa57d146102e757600080fd5b8063386a9525116101505780636a1af3b71161012a5780636a1af3b71461023e5780636e353a1d1461025157806370a082311461026457600080fd5b8063386a95251461021a5780633d18b912146102235780633d509c971461022b57600080fd5b80631c03e6cc116101815780631c03e6cc146101ea5780631c1f78eb146101ff5780632e1a7d4d1461020757600080fd5b80628cc262146101a757806318160ddd146101d05780631b0875a6146101e2575b600080fd5b6101ba6101b53660046133d5565b610390565b6040516101c791906135c2565b60405180910390f35b600b545b6040519081526020016101c7565b6008546101d4565b6101fd6101f83660046133d5565b61058b565b005b6101ba6109be565b6101fd610215366004613507565b610acf565b6101d460045481565b6101fd610e11565b6101fd6102393660046133d5565b6111a6565b6101fd61024c366004613409565b6115bb565b6101fd61025f3660046133d5565b611a86565b6101d46102723660046133d5565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b6101fd611ec6565b6002546102c29073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c7565b6101d4611f53565b60015473ffffffffffffffffffffffffffffffffffffffff166102c2565b6101d461031b3660046133d5565b611f66565b6101fd61032e366004613507565b61200d565b61033b6124af565b6040516101c79190613553565b6101d460055481565b6101ba612621565b6101fd610367366004613409565b6127dc565b6101fd612d7e565b6101d460035481565b6101fd61038b3660046133d5565b612d9f565b6060600060085467ffffffffffffffff8111156103d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156103ff578160200160208202803683370190505b509050600061040c612621565b905060005b60085481101561058257600060098161042b846001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff8a81168084526007865284842091909216808452908552838320549183526006855283832081845290945291902054855192935061052b9261052591670de0b6b3a76400009161051f916104f3918a908a9081106104dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ecf90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8c166000908152600c602052604090205490612edb565b90612ee7565b90612ef3565b848381518110610564577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152508061057a81613728565b915050610411565b50909392505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60066008541061067d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f546f6f206d616e7920746f6b656e7300000000000000000000000000000000006044820152606401610608565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b1580156106e557600080fd5b505afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d919061351f565b11610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d7573742070726566756e6420636f6e747261637400000000000000000000006044820152606401610608565b6001600860008282546107979190613657565b90915550506040805160608101825273ffffffffffffffffffffffffffffffffffffffff8381168083526000602080850182815285870183815260088054855260098452888520975188547fffffffffffffffffffffffff000000000000000000000000000000000000000016971696909617875590516001870155516002909501949094559154908252600a90925291822081905567ffffffffffffffff81111561086c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610895578160200160208202803683370190505b50905060005b6008548110156109b05760016008546108b491906136e5565b81141561099e576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b15801561092057600080fd5b505afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610958919061351f565b828281518110610991577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b806109a881613728565b91505061089b565b506109ba816127dc565b5050565b6060600060085467ffffffffffffffff811115610a04577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a2d578160200160208202803683370190505b50905060005b600854811015610ac957600454610a739060096000610a53856001613657565b815260200190815260200160002060010154612edb90919063ffffffff16565b828281518110610aac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015280610ac181613728565b915050610a33565b50919050565b60026000541415610b3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610b4d612621565b90506000610b5a83610390565b9050610b64611f53565b60055560005b600854811015610d03576000600981610b84846001613657565b81526020019081526020016000209050838281518110610bcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615610cf057828281518110610c32577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610cae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080610cfb81613728565b915050610b6a565b5060008411610d6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f7420776974686472617720300000000000000000000000000000006044820152606401610608565b600b54610d7b9085612ecf565b600b55336000908152600c6020526040902054610d989085612ecf565b336000818152600c6020526040902091909155600254610dd19173ffffffffffffffffffffffffffffffffffffffff9091169086612eff565b60405184815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2505060016000555050565b60026000541415610e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610e8f612621565b90506000610e9c83610390565b9050610ea6611f53565b60055560005b600854811015611045576000600981610ec6846001613657565b81526020019081526020016000209050838281518110610f0f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561103257828281518110610f74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610ff0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061103d81613728565b915050610eac565b5060005b60085481101561119b5733600090815260076020526040812081600981611071866001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291019020549050801561118857336000908152600760205260408120816009816110d1876001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291018120919091556111529033908390600990611124876001613657565b815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff169190612eff565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b508061119381613728565b915050611049565b505060016000555050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611232612621565b9050600061123f83610390565b9050611249611f53565b60055560005b6008548110156113e8576000600981611269846001613657565b815260200190815260200160002090508382815181106112b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff8516156113d557828281518110611317577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611393577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b50806113e081613728565b91505061124f565b50600160085411611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616e6e6f74206861766520302072657761726420746f6b656e7300000000006044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020526040902054805b600854811161159b576000600981611496846001613657565b815260208082019290925260409081016000908120858252600993849052918120825481547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178155600180840154818301556002808501549201919091559193509061151d908590613657565b81526020808201929092526040908101600090812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560018101829055600201819055925473ffffffffffffffffffffffffffffffffffffffff168352600a90915290208190558061159381613728565b91505061147d565b506001600860008282546115af91906136e5565b90915550505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461163c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b6008548151146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e6720616d6f756e7473000000000000000000000000000000000000006044820152606401610608565b60005b600854811015611a6c5760006009816116c5846001613657565b8152602081019190915260409081016000908120805492517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152909350909173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561174357600080fd5b505afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b919061351f565b90506117e633308686815181106117bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151855473ffffffffffffffffffffffffffffffffffffffff16929190612fd8565b81546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009161189391849173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561185557600080fd5b505afa158015611869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188d919061351f565b90612ecf565b905060035442106118b6576004546118ac908290612ee7565b60018401556118fd565b6003546000906118c69042612ecf565b905060006118e1856001015483612edb90919063ffffffff16565b6004549091506118f59061051f8584612ef3565b600186015550505b82546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e919061351f565b90506119b560045482612ee790919063ffffffff16565b84600101541115611a22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b6040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050508080611a6490613728565b9150506116ab565b50426005819055600454611a809190612ef3565b60035550565b60015473ffffffffffffffffffffffffffffffffffffffff163314611b07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611b12612621565b90506000611b1f83610390565b9050611b29611f53565b60055560005b600854811015611cc8576000600981611b49846001613657565b81526020019081526020016000209050838281518110611b92577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615611cb557828281518110611bf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611c73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080611cc081613728565b915050611b2f565b506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8616906370a082319060240160206040518083038186803b158015611d3157600080fd5b505afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d69919061351f565b905060008111611dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f436f6e747261637420686f6c6473206e6f20746f6b656e7300000000000000006044820152606401610608565b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611e1060015473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101849052604401602060405180830381600087803b158015611e7d57600080fd5b505af1158015611e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb591906134e7565b50611ebf856111a6565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611f47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b611f51600061303c565b565b6000611f61426003546130b3565b905090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a6020526040812054600b54611fab5760009081526009602052604090206002015492915050565b612006611fee600b5461051f670de0b6b3a7640000611fe86009600088815260200190815260200160002060010154611fe860055461188d611f53565b90612edb565b60008381526009602052604090206002015490612ef3565b9392505050565b6002600054141561207a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b60026000908155339061208b612621565b9050600061209883610390565b90506120a2611f53565b60055560005b6008548110156122415760006009816120c2846001613657565b8152602001908152602001600020905083828151811061210b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561222e57828281518110612170577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106121ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061223981613728565b9150506120a8565b50600084116122ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610608565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561231657600080fd5b505afa15801561232a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234e919061351f565b6002549091506123769073ffffffffffffffffffffffffffffffffffffffff16333088612fd8565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156123e057600080fd5b505afa1580156123f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612418919061351f565b905060006124268284612ecf565b600b549091506124369082612ef3565b600b55336000908152600c60205260409020546124539082612ef3565b336000818152600c6020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90612499908a815260200190565b60405180910390a2505060016000555050505050565b6060600060085467ffffffffffffffff8111156124f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561256057816020015b61254d6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b8152602001906001900390816125135790505b50905060005b600854811015610ac9576009600061257f836001613657565b815260208082019290925260409081016000208151606081018352815473ffffffffffffffffffffffffffffffffffffffff16815260018201549381019390935260020154908201528251839083908110612603577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250808061261990613728565b915050612566565b6060600060085467ffffffffffffffff811115612667577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612690578160200160208202803683370190505b509050600b54600014156127225760005b600854811015610ac957600960006126ba836001613657565b815260200190815260200160002060020154828281518110612705577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910101528061271a81613728565b9150506126a1565b60005b600854811015610ac957600060098161273f846001613657565b8152602001908152602001600020905061278561277a600b5461051f670de0b6b3a7640000611fe88660010154611fe860055461188d611f53565b600283015490612ef3565b8383815181106127be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015250806127d481613728565b915050612725565b60015473ffffffffffffffffffffffffffffffffffffffff16331461285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080612868612621565b9050600061287583610390565b905061287f611f53565b60055560005b600854811015612a1e57600060098161289f846001613657565b815260200190815260200160002090508382815181106128e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615612a0b5782828151811061294d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106129c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080612a1681613728565b915050612885565b50600854845114612a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e672072657761726420616d6f756e74730000000000000000000000006044820152606401610608565b60005b600854811015612d61576000600981612aa8846001613657565b815260200190815260200160002090506003544210612b2057612b16600454878481518110612b00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ee790919063ffffffff16565b6001820155612bae565b600354600090612b309042612ecf565b90506000612b4b836001015483612edb90919063ffffffff16565b9050612ba660045461051f838b8881518110612b90577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ef390919063ffffffff16565b600184015550505b80546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4f919061351f565b9050612c6660045482612ee790919063ffffffff16565b82600101541115612cd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d878481518110612d2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604051612d4491815260200190565b60405180910390a150508080612d5990613728565b915050612a8e565b50426005819055600454612d759190612ef3565b60035550505050565b336000908152600c6020526040902054612d9790610acf565b611f51610e11565b60015473ffffffffffffffffffffffffffffffffffffffff163314612e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff8116612ec3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610608565b612ecc8161303c565b50565b600061200682846136e5565b600061200682846136a8565b6000612006828461366f565b60006120068284613657565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fd39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526130c9565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526130369085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612f51565b50505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106130c25781612006565b5090919050565b600061312b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131d59092919063ffffffff16565b805190915015612fd3578080602001905181019061314991906134e7565b612fd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610608565b60606131e484846000856131ec565b949350505050565b60608247101561327e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610608565b73ffffffffffffffffffffffffffffffffffffffff85163b6132fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610608565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133259190613537565b60006040518083038185875af1925050503d8060008114613362576040519150601f19603f3d011682016040523d82523d6000602084013e613367565b606091505b5091509150613377828286613382565b979650505050505050565b60608315613391575081612006565b8251156133a15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106089190613606565b6000602082840312156133e6578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114612006578182fd5b6000602080838503121561341b578182fd5b823567ffffffffffffffff80821115613432578384fd5b818501915085601f830112613445578384fd5b81358181111561345757613457613790565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561349a5761349a613790565b604052828152858101935084860182860187018a10156134b8578788fd5b8795505b838610156134da5780358552600195909501949386019386016134bc565b5098975050505050505050565b6000602082840312156134f8578081fd5b81518015158114612006578182fd5b600060208284031215613518578081fd5b5035919050565b600060208284031215613530578081fd5b5051919050565b600082516135498184602087016136fc565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b828110156135b5578151805173ffffffffffffffffffffffffffffffffffffffff16855286810151878601528501518585015260609093019290850190600101613570565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156135fa578351835292840192918401916001016135de565b50909695505050505050565b60208152600082518060208401526136258160408501602087016136fc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561366a5761366a613761565b500190565b6000826136a3577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136e0576136e0613761565b500290565b6000828210156136f7576136f7613761565b500390565b60005b838110156137175781810151838201526020016136ff565b838111156130365750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561375a5761375a613761565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220e8c7fac6f5ee12f307dde3448e9b4d97fdbcb162796a4ba3f31ab56f5fc255b664736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32

-----Decoded View---------------
Arg [0] : rewardTokens_ (address[]): 0x8B3192f5eEBD8579568A2Ed41E6FEB402f93f73F,0xab167E816E4d76089119900e941BEfdfA37d6b32
Arg [1] : stakingToken_ (address): 0x5e9F35E8163c44cD7e606BdD716AbED32AD2F1C6

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f
Arg [4] : 000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.