Contract 0xc91ee78162424c5d1279dae6f04babea4794b34f 5

 
Txn Hash Method
Index
From
To
Value
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442Stake259992222022-09-28 12:45:002 days 10 hrs ago0x594d0c147a5509ef0a993558d4dcdfbc08c8c907 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000545923780.00100155
0xbdec98c025451fcf7c3f2a616d6605810f601c72134a83495c14c7c99b469cd7Exit All254860632022-09-26 7:04:114 days 15 hrs ago0x46919f4016befb3c9a01e72a1cfc395695276a01 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000156446560.00100155
0x503b6f5b46050db0b43beb5e5225a64336e3901baafcd5d908d120602202df0eClaim All Reward...254836662022-09-26 6:54:104 days 16 hrs ago0x46919f4016befb3c9a01e72a1cfc395695276a01 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000173824680.00100155
0x6480d5e545f2bcda99b377ae7e1b51ef84d6967d791432d012e71587d079b6e7Claim All Reward...254835252022-09-26 6:53:254 days 16 hrs ago0x15fe8337a6e23629fa09dc6e0f8b041d681ec995 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000197212820.00100155
0x90e6c98ec5d19fafcd8d58239a94ff0659baa5798829f047e3715313b6ffc1adClaim All Reward...254833952022-09-26 6:52:404 days 16 hrs ago0x46919f4016befb3c9a01e72a1cfc395695276a01 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000197013510.00100155
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585Claim All Reward...254521132022-09-26 3:37:324 days 19 hrs ago0xe7ce7e18ff2ebea17ff648648c52f81ace9f7c70 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000156425940.00100155
0x5575922f560758fd9ad54352a12d3255204b4b3caa6d6b867798efbabdf8ac42Claim All Reward...254515022022-09-26 3:33:154 days 19 hrs ago0xfeffe30096262df5efda8d8cc54b536231ccfbb9 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000184547030.00100155
0xfc83bf71be010481b55f8a1dfc824fb7f2f641453a0c4afd81d8fe9accca7d73Stake254481462022-09-26 3:12:534 days 19 hrs ago 0x34efeeb88e7eaa60281afe7f5849e5e84c3f449b IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000217501820.00100155
0x778c16d9d68d99d2d21825500f3e6ea69fe38b5416e11b74e68613a76edfff5eStake254444182022-09-26 2:47:274 days 20 hrs ago0x99b6a44fa3d3e0d3f33464ffac5710f31c3db580 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000167754630.00100155
0x82fa22e384361211eda4899aed903a9af8c7519479006b6b54550709ac4f481cClaim All Reward...254438642022-09-26 2:42:394 days 20 hrs ago0xbbf15e008535cb93a7e2168038dc316c56faf791 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000151325020.00100155
0xa96930d5fc09d21b69c6b7df0bb4f3905bcd2daed32280eaceecd90c1e306e5cClaim All Reward...254432052022-09-26 2:36:174 days 20 hrs ago0x2930285a7435bb9fb5dbf9da7b9cf60dee2fd2e9 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000170567530.00100155
0x7f0d54f218e1990e1db8439f1921a4e0e49284b93fe0403295b3e937be477693Exit254422152022-09-26 2:26:554 days 20 hrs ago0x99b6a44fa3d3e0d3f33464ffac5710f31c3db580 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.000017571140.00100155
0x9c5eedd3cdf45a408ef9d3a9f116c891be90e68daec626c6d347b880429a293fStake254403352022-09-26 2:10:214 days 20 hrs ago0xe5facaef11b03766cf44a9bf629f551fa2355e54 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000169325620.00100155
0xf252fcba4f8f6a6724bf3f7ea7b7ba1f211d2780c2088c0792cfe5044807a398Claim All Reward...254401152022-09-26 2:08:174 days 20 hrs ago0xc143790f399351c25a906bb3fb15630828f8e75e IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000154439570.00100155
0x32dd2b6d649fec9b3b867f83f8a7ed9c5e55fc293d1d1c69821385e774e27ed0Stake254393982022-09-26 2:01:294 days 20 hrs ago0xe5facaef11b03766cf44a9bf629f551fa2355e54 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000186282490.00100155
0x3ed1e038b72807046928bb04c11e0ccdb899fafa45219191be0368dc8ba19fbeStake254382402022-09-26 1:51:304 days 21 hrs ago0x9495c18e1b7e0b026f8eef3d087d9822c2b70da0 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000243793010.00100155
0x53a37267377608fc7035c4ea5ca1e9425ef8c50a0c7f06b7d6ee60253f859cc2Claim All Reward...254377742022-09-26 1:47:284 days 21 hrs ago0xa10753468d7eaf706a91a7ae5c021aaea2aad7d8 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000303576870.00100155
0x3756239c01fe358da49f0c66007075672a292e9be557fd72eda6de25b47e2c9cStake254376782022-09-26 1:46:134 days 21 hrs ago0xa10753468d7eaf706a91a7ae5c021aaea2aad7d8 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000348848310.00100155
0xa9f4986c1454ea61232160428ab0dd5d758c2a16c7f181e1bf526925241fcf7cExit254376582022-09-26 1:45:584 days 21 hrs ago0x9495c18e1b7e0b026f8eef3d087d9822c2b70da0 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000404371840.00100155
0xcd50298a7a4abd65b08c0871a837f912531e8d1258dd5381ac1a55be33157bb7Claim All Reward...254203322022-09-25 23:41:204 days 23 hrs ago0x3dd3f1e1b0dbe842aef9182bda711223396f5d64 IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000152471760.00100155
0xf360da0459b7270356e3f675296c9e770eb78987abaf292ba4667c6de8867dd1Stake254185902022-09-25 23:24:564 days 23 hrs ago0x22561c5931143536309c17e832587b625c390b9a IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000195486840.00100155
0x5581fbf00b765fdda52be7f533adfc7302f58b68247958b41cb538c3bb68a2ffClaim All Reward...254184852022-09-25 23:23:404 days 23 hrs ago0x22561c5931143536309c17e832587b625c390b9a IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000157144610.00100155
0x790a8dc6bef8588a870fc7329954a7eafa3e962e34a1a1c41744e8dd2e411e0aStake254058982022-09-25 21:45:315 days 1 hr ago0x35a807f9dd68c7b03a992477f85cf5a08ee9a69e IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000672794660.00100155
0xc46128f367278fa608a720493a8281c5e44d5de5a309f62a0c4c7e5262fe9e6bStake254037382022-09-25 21:30:155 days 1 hr ago0xca02e6c2f0633e15977951fed564f818f853887d IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.0000436226570.00100155
0x5288c0af36bb58d174a028e3a4a8015c49ed3f354702e90ad3a742082c7ddcd5Stake254035652022-09-25 21:28:445 days 1 hr ago0xe699e8334d901986d9ff6bc5ae4b44ae5122f1ee IN  0xc91ee78162424c5d1279dae6f04babea4794b34f0 Ether0.000045617970.00100155
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x100be116e7d934268db5dfcfad54cb221504c4790 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f Iron Bank: iUSDC Token0 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f Iron Bank: iUSDC Token0 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f Iron Bank: iUSDC Token0 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x7f5c764cbc14f9669b88837ca1490cca17c316070 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x7f5c764cbc14f9669b88837ca1490cca17c316070 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0xa3da6d41ab366f512a4f8d68bcd0b6830e96d610a4f9c16ac77ffe631967d442259992222022-09-28 12:45:002 days 10 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0xbdec98c025451fcf7c3f2a616d6605810f601c72134a83495c14c7c99b469cd7254860632022-09-26 7:04:114 days 15 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0xbdec98c025451fcf7c3f2a616d6605810f601c72134a83495c14c7c99b469cd7254860632022-09-26 7:04:114 days 15 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0x503b6f5b46050db0b43beb5e5225a64336e3901baafcd5d908d120602202df0e254836662022-09-26 6:54:104 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0x503b6f5b46050db0b43beb5e5225a64336e3901baafcd5d908d120602202df0e254836662022-09-26 6:54:104 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0x6480d5e545f2bcda99b377ae7e1b51ef84d6967d791432d012e71587d079b6e7254835252022-09-26 6:53:254 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0x6480d5e545f2bcda99b377ae7e1b51ef84d6967d791432d012e71587d079b6e7254835252022-09-26 6:53:254 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0x90e6c98ec5d19fafcd8d58239a94ff0659baa5798829f047e3715313b6ffc1ad254833952022-09-26 6:52:404 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0x90e6c98ec5d19fafcd8d58239a94ff0659baa5798829f047e3715313b6ffc1ad254833952022-09-26 6:52:404 days 16 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xb548db1746aa5468d444c7231876abdc6bf0bd610 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x9642aec69306d47fad7bbbf5bd7c00d87304f39c0 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x553d42d966bf57a50f2d3a48a999845295309fbf0 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xe1360b36449af40547f46edf61253d7aa5a553960 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xd52df1ea7b51b76cc831ed68ff93e92f802716170 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x46e10daf72233dc9e807c7fa3f808c0eac3909fc0 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x100be116e7d934268db5dfcfad54cb221504c4790 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0xb3ecaf99c3aeea4e237021ca96eb3351228837ff081be1bc404355ca6e479585254521132022-09-26 3:37:324 days 19 hrs ago 0xc91ee78162424c5d1279dae6f04babea4794b34f 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewardsHelper

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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 2 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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 4 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [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);
            }
        }
    }
}

File 6 of 10 : 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 7 of 10 : StakingRewardsHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/ITokenInterface.sol";
import "./interfaces/StakingRewardsInterface.sol";
import "./interfaces/StakingRewardsFactoryInterface.sol";

contract StakingRewardsHelper is Ownable {
    using SafeERC20 for IERC20;

    StakingRewardsFactoryInterface public immutable factory;

    /**
     * @notice Emitted when tokens are seized
     */
    event TokenSeized(address token, uint256 amount);

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

    constructor(address _factory) {
        factory = StakingRewardsFactoryInterface(_factory);
    }

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

    struct RewardTokenInfo {
        address rewardTokenAddress;
        string rewardTokenSymbol;
        uint8 rewardTokenDecimals;
    }

    struct RewardClaimable {
        RewardTokenInfo rewardToken;
        uint256 amount;
    }

    struct UserStaked {
        address stakingTokenAddress;
        uint256 balance;
    }

    struct StakingInfo {
        address stakingTokenAddress;
        uint256 totalSupply;
        uint256 supplyRatePerBlock;
        uint256 exchangeRate;
        RewardRate[] rewardRates;
    }

    struct RewardRate {
        address rewardTokenAddress;
        uint256 rate;
    }

    /**
     * @notice Getthe reward token info
     * @param rewardToken The reward token
     * @return The reward token info
     */
    function getRewardTokenInfo(address rewardToken)
        public
        view
        returns (RewardTokenInfo memory)
    {
        return
            RewardTokenInfo({
                rewardTokenAddress: rewardToken,
                rewardTokenSymbol: IERC20Metadata(rewardToken).symbol(),
                rewardTokenDecimals: IERC20Metadata(rewardToken).decimals()
            });
    }

    /**
     * @notice Get user claimable rewards
     * @param account The account
     * @param rewardTokens The list of reward tokens
     * @return The list of user claimable rewards
     */
    function getUserClaimableRewards(
        address account,
        address[] calldata rewardTokens
    ) public view returns (RewardClaimable[] memory) {
        RewardClaimable[] memory rewardsClaimable = new RewardClaimable[](
            rewardTokens.length
        );

        address[] memory allStakingRewards = factory.getAllStakingRewards();
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            uint256 amount;
            for (uint256 j = 0; j < allStakingRewards.length; j++) {
                address stakingRewards = allStakingRewards[j];
                amount += StakingRewardsInterface(stakingRewards).earned(
                    rewardTokens[i],
                    account
                );
            }

            rewardsClaimable[i] = RewardClaimable({
                rewardToken: getRewardTokenInfo(rewardTokens[i]),
                amount: amount
            });
        }
        return rewardsClaimable;
    }

    /**
     * @notice Get user staked info
     * @param account The account
     * @return The list of user staked info
     */
    function getUserStaked(address account)
        public
        view
        returns (UserStaked[] memory)
    {
        address[] memory allStakingRewards = factory.getAllStakingRewards();
        UserStaked[] memory stakedInfo = new UserStaked[](
            allStakingRewards.length
        );
        for (uint256 i = 0; i < allStakingRewards.length; i++) {
            address stakingRewards = allStakingRewards[i];
            address stakingToken = StakingRewardsInterface(stakingRewards)
                .getStakingToken();
            uint256 balance = StakingRewardsInterface(stakingRewards).balanceOf(
                account
            );
            stakedInfo[i] = UserStaked({
                stakingTokenAddress: stakingToken,
                balance: balance
            });
        }
        return stakedInfo;
    }

    /**
     * @notice Get all the staking info
     * @return The list of staking info
     */
    function getStakingInfo() public view returns (StakingInfo[] memory) {
        address[] memory allStakingRewards = factory.getAllStakingRewards();
        StakingInfo[] memory stakingRewardRates = new StakingInfo[](
            allStakingRewards.length
        );
        for (uint256 i = 0; i < allStakingRewards.length; i++) {
            address stakingRewards = allStakingRewards[i];
            address[] memory allRewardTokens = StakingRewardsInterface(
                stakingRewards
            ).getAllRewardsTokens();

            RewardRate[] memory rewardRates = new RewardRate[](
                allRewardTokens.length
            );
            for (uint256 j = 0; j < allRewardTokens.length; j++) {
                address rewardToken = allRewardTokens[j];
                uint256 rate = StakingRewardsInterface(stakingRewards)
                    .getRewardRate(rewardToken);
                rewardRates[j] = RewardRate({
                    rewardTokenAddress: rewardToken,
                    rate: rate
                });
            }

            address stakingToken = StakingRewardsInterface(stakingRewards)
                .getStakingToken();
            uint256 totalSupply = StakingRewardsInterface(stakingRewards)
                .totalSupply();
            uint256 supplyRatePerBlock = ITokenInterface(stakingToken)
                .supplyRatePerBlock();
            uint256 exchangeRate = ITokenInterface(stakingToken)
                .exchangeRateStored();
            stakingRewardRates[i] = StakingInfo({
                stakingTokenAddress: stakingToken,
                totalSupply: totalSupply,
                supplyRatePerBlock: supplyRatePerBlock,
                exchangeRate: exchangeRate,
                rewardRates: rewardRates
            });
        }
        return stakingRewardRates;
    }

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

    /**
     * @notice Mint and stake tokens into staking rewards
     * @param underlying The underlying token
     * @param amount The amount
     */
    function stake(address underlying, uint256 amount) public {
        require(amount > 0, "invalid amount");
        address stakingToken = factory.getStakingToken(underlying);
        require(stakingToken != address(0), "invalid staking token");
        address stakingRewards = factory.getStakingRewards(stakingToken);
        require(stakingRewards != address(0), "staking rewards not exist");

        // Get funds from user.
        IERC20(underlying).safeTransferFrom(msg.sender, address(this), amount);

        // Mint
        IERC20(underlying).approve(stakingToken, amount);
        require(ITokenInterface(stakingToken).mint(amount) == 0, "mint failed");

        // Stake to staking rewards.
        uint256 balance = IERC20(stakingToken).balanceOf(address(this));
        IERC20(stakingToken).approve(stakingRewards, balance);
        StakingRewardsInterface(stakingRewards).stakeFor(msg.sender, balance);

        assert(IERC20(stakingToken).balanceOf(address(this)) == 0);
    }

    /**
     * @notice Unstake tokens from staking rewards and redeem
     * @param stakingRewards The staking rewards
     * @param amount The amount
     */
    function unstake(address stakingRewards, uint256 amount) public {
        require(amount > 0, "invalid amount");
        address stakingToken = StakingRewardsInterface(stakingRewards)
            .getStakingToken();
        require(stakingToken != address(0), "invalid staking token");
        address underlying = ITokenInterface(stakingToken).underlying();
        require(underlying != address(0), "invalid underlying");

        // Withdraw from staking rewards.
        StakingRewardsInterface(stakingRewards).withdrawFor(msg.sender, amount);

        // Redeem
        require(
            ITokenInterface(stakingToken).redeem(amount) == 0,
            "redeem failed"
        );

        // Send funds to user.
        uint256 balance = IERC20(underlying).balanceOf(address(this));
        IERC20(underlying).transfer(msg.sender, balance);

        assert(IERC20(underlying).balanceOf(address(this)) == 0);
    }

    /**
     * @notice Exit all staking rewards
     */
    function exitAll() public {
        address[] memory allStakingRewards = factory.getAllStakingRewards();
        exit(allStakingRewards);
    }

    /**
     * @notice Exit staking rewards
     * @param stakingRewards The list of staking rewards
     */
    function exit(address[] memory stakingRewards) public {
        for (uint256 i = 0; i < stakingRewards.length; i++) {
            uint256 balance = StakingRewardsInterface(stakingRewards[i])
                .balanceOf(msg.sender);
            unstake(stakingRewards[i], balance);
            StakingRewardsInterface(stakingRewards[i]).getRewardFor(msg.sender);
        }
    }

    /**
     * @notice Claim all rewards
     */
    function claimAllRewards() public {
        address[] memory allStakingRewards = factory.getAllStakingRewards();
        claimRewards(allStakingRewards);
    }

    /**
     * @notice Claim rewards by given staking rewards
     * @param stakingRewards The list of staking rewards
     */
    function claimRewards(address[] memory stakingRewards) public {
        for (uint256 i = 0; i < stakingRewards.length; i++) {
            StakingRewardsInterface(stakingRewards[i]).getRewardFor(msg.sender);
        }
    }

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

    /**
     * @notice Seize tokens in this contract.
     * @param token The token
     * @param amount The amount
     */
    function seize(address token, uint256 amount) external onlyOwner {
        IERC20(token).safeTransfer(owner(), amount);
        emit TokenSeized(token, amount);
    }
}

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

pragma solidity ^0.8.0;

interface ITokenInterface {
    function underlying() external view returns (address);

    function supplyRatePerBlock() external view returns (uint256);

    function exchangeRateStored() external view returns (uint256);

    function mint(uint256 mintAmount) external returns (uint256);

    function redeem(uint256 redeemTokens) external returns (uint256);
}

File 9 of 10 : StakingRewardsFactoryInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface StakingRewardsFactoryInterface {
    function getStakingRewardsCount() external view returns (uint256);

    function getAllStakingRewards() external view returns (address[] memory);

    function getStakingRewards(address stakingToken)
        external
        view
        returns (address);

    function getStakingToken(address underlying)
        external
        view
        returns (address);
}

File 10 of 10 : StakingRewardsInterface.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface StakingRewardsInterface {
    function totalSupply() external view returns (uint256);

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

    function lastTimeRewardApplicable(address _rewardsToken)
        external
        view
        returns (uint256);

    function rewardPerToken(address _rewardsToken)
        external
        view
        returns (uint256);

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

    function getRewardRate(address _rewardsToken)
        external
        view
        returns (uint256);

    function getRewardForDuration(address _rewardsToken)
        external
        view
        returns (uint256);

    function getRewardsTokenCount() external view returns (uint256);

    function getAllRewardsTokens() external view returns (address[] memory);

    function getStakingToken() external view returns (address);

    function stake(uint256 amount) external;

    function stakeFor(address account, uint256 amount) external;

    function withdraw(uint256 amount) external;

    function withdrawFor(address account, uint256 amount) external;

    function getReward() external;

    function getRewardFor(address account) external;

    function exit() external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","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":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenSeized","type":"event"},{"inputs":[],"name":"claimAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakingRewards","type":"address[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakingRewards","type":"address[]"}],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exitAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract StakingRewardsFactoryInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rewardToken","type":"address"}],"name":"getRewardTokenInfo","outputs":[{"components":[{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"string","name":"rewardTokenSymbol","type":"string"},{"internalType":"uint8","name":"rewardTokenDecimals","type":"uint8"}],"internalType":"struct StakingRewardsHelper.RewardTokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingInfo","outputs":[{"components":[{"internalType":"address","name":"stakingTokenAddress","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"supplyRatePerBlock","type":"uint256"},{"internalType":"uint256","name":"exchangeRate","type":"uint256"},{"components":[{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"internalType":"struct StakingRewardsHelper.RewardRate[]","name":"rewardRates","type":"tuple[]"}],"internalType":"struct StakingRewardsHelper.StakingInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address[]","name":"rewardTokens","type":"address[]"}],"name":"getUserClaimableRewards","outputs":[{"components":[{"components":[{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"string","name":"rewardTokenSymbol","type":"string"},{"internalType":"uint8","name":"rewardTokenDecimals","type":"uint8"}],"internalType":"struct StakingRewardsHelper.RewardTokenInfo","name":"rewardToken","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct StakingRewardsHelper.RewardClaimable[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserStaked","outputs":[{"components":[{"internalType":"address","name":"stakingTokenAddress","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"}],"internalType":"struct StakingRewardsHelper.UserStaked[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"seize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakingRewards","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620025b5380380620025b58339810160408190526200003491620000a1565b6200003f3362000051565b6001600160a01b0316608052620000d3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000b457600080fd5b81516001600160a01b0381168114620000cc57600080fd5b9392505050565b608051612495620001206000396000818161019e01528181610250015281816102e601528181610417015281816104f5015281816109d101528181611306015261150b01526124956000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063c2a672e011610097578063eb9253c011610066578063eb9253c014610200578063f2fde38b14610213578063f6670bd614610226578063f9f031df1461023957600080fd5b8063c2a672e014610186578063c45a015514610199578063d3e64cab146101c0578063dac3fc3f146101e057600080fd5b80638da5cb5b116100d35780638da5cb5b14610114578063adc9772e1461013e578063b2989f5d14610151578063b40cd21d1461017157600080fd5b80630b83a727146100fa5780635b6c508c14610104578063715018a61461010c575b600080fd5b61010261024c565b005b6101026102e2565b610102610375565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b61010261014c366004611db8565b6103b4565b61016461015f366004611de4565b6108a9565b6040516101359190611e97565b6101796109cb565b6040516101359190611eaa565b610102610194366004611db8565b610ece565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6101d36101ce366004611f8b565b611288565b6040516101359190612013565b6101f36101ee366004611de4565b611505565b6040516101359190612089565b61010261020e366004611db8565b61174e565b610102610221366004611de4565b6117e4565b610102610234366004612154565b61187c565b610102610247366004612154565b6119c4565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156102ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102d491908101906121e8565b90506102df816119c4565b50565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261036a91908101906121e8565b90506102df8161187c565b6000546001600160a01b031633146103a85760405162461bcd60e51b815260040161039f90612277565b60405180910390fd5b6103b26000611a5a565b565b600081116103f55760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161039f565b604051630a69c70f60e21b81526001600160a01b0383811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906329a71c3c90602401602060405180830381865afa158015610460573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048491906122ac565b90506001600160a01b0381166104d45760405162461bcd60e51b815260206004820152601560248201527434b73b30b634b21039ba30b5b4b733903a37b5b2b760591b604482015260640161039f565b6040516210f7f160e91b81526001600160a01b0382811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906321efe20090602401602060405180830381865afa15801561053e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056291906122ac565b90506001600160a01b0381166105ba5760405162461bcd60e51b815260206004820152601960248201527f7374616b696e672072657761726473206e6f7420657869737400000000000000604482015260640161039f565b6105cf6001600160a01b038516333086611aaa565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820185905285169063095ea7b3906044016020604051808303816000875af115801561061e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064291906122c9565b5060405163140e25ad60e31b8152600481018490526001600160a01b0383169063a0712d68906024016020604051808303816000875af115801561068a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ae91906122eb565b156106e95760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0819985a5b195960aa1b604482015260640161039f565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075491906122eb565b60405163095ea7b360e01b81526001600160a01b038481166004830152602482018390529192509084169063095ea7b3906044016020604051808303816000875af11580156107a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cb91906122c9565b506040516305dc812160e31b8152336004820152602481018290526001600160a01b03831690632ee4090890604401600060405180830381600087803b15801561081457600080fd5b505af1158015610828573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a0823191506024015b602060405180830381865afa158015610871573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089591906122eb565b156108a2576108a2612304565b5050505050565b6108d9604051806060016040528060006001600160a01b0316815260200160608152602001600060ff1681525090565b6040518060600160405280836001600160a01b03168152602001836001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610931573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610959919081019061231a565b8152602001836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561099c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c091906123ae565b60ff16905292915050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610a2d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a5591908101906121e8565b90506000815167ffffffffffffffff811115610a7357610a736120e9565b604051908082528060200260200182016040528015610adf57816020015b610acc6040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001606081525090565b815260200190600190039081610a915790505b50905060005b8251811015610ec7576000838281518110610b0257610b026123d1565b602002602001015190506000816001600160a01b0316638040c65b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610b4c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b7491908101906121e8565b90506000815167ffffffffffffffff811115610b9257610b926120e9565b604051908082528060200260200182016040528015610bd757816020015b6040805180820190915260008082526020820152815260200190600190039081610bb05790505b50905060005b8251811015610cc7576000838281518110610bfa57610bfa6123d1565b602090810291909101015160405163ea7cbff160e01b81526001600160a01b03808316600483015291925060009187169063ea7cbff190602401602060405180830381865afa158015610c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7591906122eb565b90506040518060400160405280836001600160a01b0316815260200182815250848481518110610ca757610ca76123d1565b602002602001018190525050508080610cbf906123fd565b915050610bdd565b506000836001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2c91906122ac565b90506000846001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9291906122eb565b90506000826001600160a01b031663ae9d70b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610dd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df891906122eb565b90506000836001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5e91906122eb565b90506040518060a00160405280856001600160a01b0316815260200184815260200183815260200182815260200186815250898981518110610ea257610ea26123d1565b6020026020010181905250505050505050508080610ebf906123fd565b915050610ae5565b5092915050565b60008111610f0f5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161039f565b6000826001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7391906122ac565b90506001600160a01b038116610fc35760405162461bcd60e51b815260206004820152601560248201527434b73b30b634b21039ba30b5b4b733903a37b5b2b760591b604482015260640161039f565b6000816001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611003573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102791906122ac565b90506001600160a01b0381166110745760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420756e6465726c79696e6760701b604482015260640161039f565b604051636da8c6d960e11b8152336004820152602481018490526001600160a01b0385169063db518db290604401600060405180830381600087803b1580156110bc57600080fd5b505af11580156110d0573d6000803e3d6000fd5b505060405163db006a7560e01b8152600481018690526001600160a01b038516925063db006a7591506024016020604051808303816000875af115801561111b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113f91906122eb565b1561117c5760405162461bcd60e51b815260206004820152600d60248201526c1c995919595b4819985a5b1959609a1b604482015260640161039f565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156111c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e791906122eb565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125b91906122c9565b506040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401610854565b606060008267ffffffffffffffff8111156112a5576112a56120e9565b6040519080825280602002602001820160405280156112ff57816020015b6040805160a081018252600091810182815260608083015260808201839052815260208101919091528152602001906001900390816112c35790505b50905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611362573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261138a91908101906121e8565b905060005b848110156114f8576000805b83518110156114885760008482815181106113b8576113b86123d1565b60200260200101519050806001600160a01b031663211dc32d8a8a878181106113e3576113e36123d1565b90506020020160208101906113f89190611de4565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908d166024820152604401602060405180830381865afa158015611444573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146891906122eb565b6114729084612418565b9250508080611480906123fd565b91505061139b565b5060405180604001604052806114be8989868181106114a9576114a96123d1565b905060200201602081019061015f9190611de4565b8152602001828152508483815181106114d9576114d96123d1565b60200260200101819052505080806114f0906123fd565b91505061138f565b50909150505b9392505050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611567573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261158f91908101906121e8565b90506000815167ffffffffffffffff8111156115ad576115ad6120e9565b6040519080825280602002602001820160405280156115f257816020015b60408051808201909152600080825260208201528152602001906001900390816115cb5790505b50905060005b8251811015611746576000838281518110611615576116156123d1565b602002602001015190506000816001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa15801561165f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168391906122ac565b6040516370a0823160e01b81526001600160a01b0389811660048301529192506000918416906370a0823190602401602060405180830381865afa1580156116cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f391906122eb565b90506040518060400160405280836001600160a01b0316815260200182815250858581518110611725576117256123d1565b6020026020010181905250505050808061173e906123fd565b9150506115f8565b509392505050565b6000546001600160a01b031633146117785760405162461bcd60e51b815260040161039f90612277565b61179e61178d6000546001600160a01b031690565b6001600160a01b0384169083611b1b565b604080516001600160a01b0384168152602081018390527fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b6910160405180910390a15050565b6000546001600160a01b0316331461180e5760405162461bcd60e51b815260040161039f90612277565b6001600160a01b0381166118735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161039f565b6102df81611a5a565b60005b81518110156119c057600082828151811061189c5761189c6123d1565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156118ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191091906122eb565b9050611935838381518110611927576119276123d1565b602002602001015182610ece565b828281518110611947576119476123d1565b602090810291909101015160405163055de27560e01b81523360048201526001600160a01b039091169063055de27590602401600060405180830381600087803b15801561199457600080fd5b505af11580156119a8573d6000803e3d6000fd5b505050505080806119b8906123fd565b91505061187f565b5050565b60005b81518110156119c0578181815181106119e2576119e26123d1565b602090810291909101015160405163055de27560e01b81523360048201526001600160a01b039091169063055de27590602401600060405180830381600087803b158015611a2f57600080fd5b505af1158015611a43573d6000803e3d6000fd5b505050508080611a52906123fd565b9150506119c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b159085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b50565b50505050565b6040516001600160a01b038316602482015260448101829052611b4b90849063a9059cbb60e01b90606401611ade565b505050565b6000611ba5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c229092919063ffffffff16565b805190915015611b4b5780806020019051810190611bc391906122c9565b611b4b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039f565b6060611c318484600085611c39565b949350505050565b606082471015611c9a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161039f565b6001600160a01b0385163b611cf15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039f565b600080866001600160a01b03168587604051611d0d9190612430565b60006040518083038185875af1925050503d8060008114611d4a576040519150601f19603f3d011682016040523d82523d6000602084013e611d4f565b606091505b5091509150611d5f828286611d6a565b979650505050505050565b60608315611d795750816114fe565b825115611d895782518084602001fd5b8160405162461bcd60e51b815260040161039f919061244c565b6001600160a01b03811681146102df57600080fd5b60008060408385031215611dcb57600080fd5b8235611dd681611da3565b946020939093013593505050565b600060208284031215611df657600080fd5b81356114fe81611da3565b60005b83811015611e1c578181015183820152602001611e04565b83811115611b155750506000910152565b60008151808452611e45816020860160208601611e01565b601f01601f19169290920160200192915050565b60018060a01b0381511682526000602082015160606020850152611e806060850182611e2d565b60409384015160ff16949093019390935250919050565b6020815260006114fe6020830184611e59565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b84811015611f7c57898403603f19018652825180516001600160a01b03168552888101518986015287810151888601526060808201519086015260809081015160a0918601829052805191860182905289019060c086019084905b80821015611f6757611f5383855180516001600160a01b03168252602090810151910152565b928b0192918a019160019190910190611f2d565b50509689019694505091870191600101611ed2565b50919998505050505050505050565b600080600060408486031215611fa057600080fd5b8335611fab81611da3565b9250602084013567ffffffffffffffff80821115611fc857600080fd5b818601915086601f830112611fdc57600080fd5b813581811115611feb57600080fd5b8760208260051b850101111561200057600080fd5b6020830194508093505050509250925092565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561207b57888303603f190185528151805187855261205e88860182611e59565b91890151948901949094529487019492509086019060010161203a565b509098975050505050505050565b602080825282518282018190526000919060409081850190868401855b828110156120dc576120cc84835180516001600160a01b03168252602090810151910152565b92840192908501906001016120a6565b5091979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612128576121286120e9565b604052919050565b600067ffffffffffffffff82111561214a5761214a6120e9565b5060051b60200190565b6000602080838503121561216757600080fd5b823567ffffffffffffffff81111561217e57600080fd5b8301601f8101851361218f57600080fd5b80356121a261219d82612130565b6120ff565b81815260059190911b820183019083810190878311156121c157600080fd5b928401925b82841015611d5f5783356121d981611da3565b825292840192908401906121c6565b600060208083850312156121fb57600080fd5b825167ffffffffffffffff81111561221257600080fd5b8301601f8101851361222357600080fd5b805161223161219d82612130565b81815260059190911b8201830190838101908783111561225057600080fd5b928401925b82841015611d5f57835161226881611da3565b82529284019290840190612255565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156122be57600080fd5b81516114fe81611da3565b6000602082840312156122db57600080fd5b815180151581146114fe57600080fd5b6000602082840312156122fd57600080fd5b5051919050565b634e487b7160e01b600052600160045260246000fd5b60006020828403121561232c57600080fd5b815167ffffffffffffffff8082111561234457600080fd5b818401915084601f83011261235857600080fd5b81518181111561236a5761236a6120e9565b61237d601f8201601f19166020016120ff565b915080825285602082850101111561239457600080fd5b6123a5816020840160208601611e01565b50949350505050565b6000602082840312156123c057600080fd5b815160ff811681146114fe57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612411576124116123e7565b5060010190565b6000821982111561242b5761242b6123e7565b500190565b60008251612442818460208701611e01565b9190910192915050565b6020815260006114fe6020830184611e2d56fea2646970667358221220ea1640efcfb28506b27c48d83b5d8b9fcb2e13acdf883f12375ab7f121fc096b64736f6c634300080b003300000000000000000000000035f70ce60f049a8c21721c53a1dfccb5bf4a1ea8

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

00000000000000000000000035f70ce60f049a8c21721c53a1dfccb5bf4a1ea8

-----Decoded View---------------
Arg [0] : _factory (address): 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea8

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000035f70ce60f049a8c21721c53a1dfccb5bf4a1ea8


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.