Contract 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 3

 
Txn Hash Method
Block
From
To
Value
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578Stake469876202022-12-09 4:17:402 hrs 11 mins ago0x26f9178dcb4b0132d155dd0a83e55d3d835d474d IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000644591110.001
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3eClaim All Reward...469706392022-12-09 3:12:473 hrs 16 mins ago0x2e68ce417ee73d28f4585595beea55e7e7184b2d IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.000051625290.001
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fefStake469330302022-12-09 0:28:016 hrs 1 min ago0x22561c5931143536309c17e832587b625c390b9a IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000537520330.001
0xb7d6cbb03b8d8eef3d2f75a591dadfcf588ca0b2c7fb39790a6e2dbccdc73022Claim All Reward...469327852022-12-09 0:26:286 hrs 3 mins ago0x22561c5931143536309c17e832587b625c390b9a IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000484420370.001
0x0021dae8d7e0e85fd1654389976e9d14fb36bdaddfcc142881c8d72e79146584Claim All Reward...469245972022-12-08 23:19:267 hrs 10 mins ago0xce5ddfe41dcc1b0d4e8b996ba079f060d45adc2c IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000479687680.001
0x41f98003c3df6cb598cce262a8dcdb20b78699b488768d47023761deab7128b0Claim All Reward...469232892022-12-08 23:09:187 hrs 20 mins ago0xad5174a9e0888030be4e8b4a7be8abf9fa842cb5 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000500009560.001
0x4da9245a0cbefb7d3094ed9369558dbba7080ca593f3f5ebfd9ad0e47f68ff5cStake469220542022-12-08 23:01:327 hrs 28 mins ago0xe58585b22cc2ac4270a2b92c2d2d8c5db5a3330e IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000608421050.001
0x22c45e4ec14e9064888bb07bc1f2ef95c5d640d245bf310d7bb09c2a0c25fc3bStake469168632022-12-08 22:24:198 hrs 5 mins ago0x87b81c8d899febf0b3e4216b2b89777808127895 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000545427970.001
0x66f290a4bde9dd6e18cdaa569433d0e4ee973d1c0046c9fef510ad28aebb6158Stake469054742022-12-08 21:09:209 hrs 20 mins ago0x15fe8337a6e23629fa09dc6e0f8b041d681ec995 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000565071740.001
0xd8422a45519d396e24bfc418385214e35481afcf6e02d2069c425fc85be0ebb0Stake469051092022-12-08 21:06:509 hrs 22 mins ago0x4fcbd0c9c74afdcd9dc2855e46ac703cf115c119 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.000058508160.001
0x4d6403ebc583add3dc283652837d6894ae97f8efa88183ae7704763f7f24a324Claim All Reward...469040532022-12-08 20:59:479 hrs 29 mins ago0xe699e8334d901986d9ff6bc5ae4b44ae5122f1ee IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000511225410.001
0x1b36d16628c3a3ffde6d59db3872f0b6b2a627198d2c56dc33d7c32be0f30d72Exit469039172022-12-08 20:59:029 hrs 30 mins ago0x4fcbd0c9c74afdcd9dc2855e46ac703cf115c119 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000614463020.001
0x4050a6552b2d1183b5a3418ca2a5f1b3e32cfaf2196b4aea391f43456e0d5405Exit468649812022-12-08 17:33:5312 hrs 55 mins ago0x35a807f9dd68c7b03a992477f85cf5a08ee9a69e IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000820398970.001
0x9d247c36f075c6de1b8cf9a0653b543271620ac081004b922a1d73724532419dStake468561212022-12-08 16:46:3113 hrs 43 mins ago0xff643a1ab6818f11589a56dddfd18605f30ef1ce IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000620525060.001
0xec7bf8d6fd7dedae6750073cc3e590921a0ae1fa72b4e33ea9fc9bfe7c504711Claim All Reward...468248922022-12-08 14:56:3915 hrs 33 mins ago0xe979fae1e032fa9cc67d89c7aa60c62f7958a94f IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000517789190.001
0xffed1b3a8eff1dc9e114319f5bfafc5881eeb22440dc49a7bcd1ded3421f0906Claim All Reward...468172792022-12-08 14:33:5415 hrs 55 mins ago0x39a2dbe5b002bf8c5b886c7d1f70fd90cd5e1db1 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000541085530.001
0xd330137caecfcd4dd9e3e6ce7454d0e75ff0426a3566afc91b4af2f0433ff8d1Exit467944822022-12-08 13:29:5116 hrs 59 mins ago0xbfe8838de25ad36d106fd600f24471baf31e3ff3 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.000063643640.001
0x9f1062a38f513318ca88690be20cf0b0f178fca4017976353f72073dc5983883Claim All Reward...467905772022-12-08 13:18:0617 hrs 11 mins ago0x3cdfd4d0e3119edf47e293e54a1f2ccb4f319cbb IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000781530780.001
0xeea529f04a1310da9206d0a704c1d03ca3f6f31694d5de26f920f217d12e3159Stake467863572022-12-08 13:03:1817 hrs 26 mins ago0x15fe8337a6e23629fa09dc6e0f8b041d681ec995 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0001647712640.001
0xc0ab9e7b7ad80fc32c51e91009e156c0d48fc6a991e05c13834e2623b251e38bExit467860982022-12-08 13:02:3317 hrs 27 mins ago0x15fe8337a6e23629fa09dc6e0f8b041d681ec995 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0001808440410.001
0xbfbfd19e44ba0b93bd8c43f12f33b50348a6c2e6dbb3be1ee5c6029429bffa04Stake467335102022-12-08 10:59:0219 hrs 30 mins ago0x63a3eac0dc04d3556674de7549ff3e6d7c78939c IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000614798720.001
0xba52f213b28f944b93cc522ca922081fe8eef3ba47d19fe7a1d3f002400c6432Stake467218412022-12-08 10:30:3219 hrs 59 mins ago0x9ad678dcf54751879988703a1549809d8ca27067 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000574458730.001
0x9898ad4a933b3888e1a0886f886f1e8c02bd035e302df6ee32d1d97ec9b4c1c2Stake466718222022-12-08 8:21:4722 hrs 7 mins ago0x493b85283964d4b93577e305be5b5c210f16f4ca IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000658697760.001
0xe91f525bd2ae57c1c26f1abd6b56414176c1b3418893e389af68467dbc3746e8Claim All Reward...466646092022-12-08 8:03:0222 hrs 26 mins ago0xa418638eb507c35c79e62f4ce54b3eafe53d7ea4 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000571375030.001
0xeb0b1d4091a69e679e9d2d9e0af0a0b4d3eb0da261c7c8a258e1cacea7d0d9b1Claim All Reward...466644622022-12-08 8:02:3222 hrs 27 mins ago0xad578e7fa7b78feef3786d60614a740a9af88c04 IN  0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc00 Ether0.0000486628110.001
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iSUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0xb548db1746aa5468d444c7231876abdc6bf0bd610 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iSUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iSUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iSUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0Synthetix: sUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0Synthetix: sUSD Token0 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0x1fba340c3a5848a4e281cc87f2804fc290ba148155b14e4a6a3a6dd8f2638578469876202022-12-09 4:17:402 hrs 11 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0xb548db1746aa5468d444c7231876abdc6bf0bd610 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x9642aec69306d47fad7bbbf5bd7c00d87304f39c0 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x553d42d966bf57a50f2d3a48a999845295309fbf0 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0xe1360b36449af40547f46edf61253d7aa5a553960 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0xd52df1ea7b51b76cc831ed68ff93e92f802716170 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x46e10daf72233dc9e807c7fa3f808c0eac3909fc0 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x100be116e7d934268db5dfcfad54cb221504c4790 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0xf75e85e9127039b4cf818118cc8c5b257edf66840 Ether
0x286724acc5429b6c3f3f5919fa36def79f0eaff6d5bc44a5aa4b0eb56ab6ec3e469706392022-12-09 3:12:473 hrs 16 mins ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x35f70ce60f049a8c21721c53a1dfccb5bf4a1ea80 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iOP Token0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 0x553d42d966bf57a50f2d3a48a999845295309fbf0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iOP Token0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iOP Token0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Iron Bank: iOP Token0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Optimism: OP Token0 Ether
0xc25a85838d19b2fe51c039b7bb3f76a74187fa8175cd8e0b6cbbd48369bd4fef469330302022-12-09 0:28:016 hrs 1 min ago 0x970d6b8c1479ec2bfe5a82dc69cafe4003099bc0 Optimism: OP Token0 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 12 : 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 12 : 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 12 : 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 4 of 12 : 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 5 of 12 : 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 6 of 12 : 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 7 of 12 : 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 8 of 12 : StakingRewardsHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.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/IWrappedNative.sol";
import "./interfaces/StakingRewardsInterface.sol";
import "./interfaces/StakingRewardsFactoryInterface.sol";

contract StakingRewardsHelper is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    StakingRewardsFactoryInterface public immutable factory;
    address public immutable wrappedNative;

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

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

    constructor(address _factory, address _wrappedNative) {
        factory = StakingRewardsFactoryInterface(_factory);
        wrappedNative = _wrappedNative;
    }

    /* ========== 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 nonReentrant {
        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 Mint native and stake tokens into staking rewards
     */
    function stakeNative() public payable nonReentrant {
        require(msg.value > 0, "invalid amount");
        address stakingToken = factory.getStakingToken(wrappedNative);
        require(stakingToken != address(0), "invalid staking token");
        address stakingRewards = factory.getStakingRewards(stakingToken);
        require(stakingRewards != address(0), "staking rewards not exist");

        // Mint native.
        require(
            ITokenInterface(stakingToken).mintNative{value: msg.value}() == 0,
            "mint native failed"
        );

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

    /**
     * @notice Unstake tokens from staking rewards and redeem
     * @param stakingRewards The staking rewards
     * @param amount The amount
     * @param toNative Unwrap to native token or not
     */
    function unstake(
        address stakingRewards,
        uint256 amount,
        bool toNative
    ) public nonReentrant {
        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);

        if (toNative && underlying == wrappedNative) {
            // Redeem native.
            require(
                ITokenInterface(stakingToken).redeemNative(amount) == 0,
                "redeem native failed"
            );

            // Send ethers to user.
            (bool sent, ) = msg.sender.call{value: address(this).balance}("");
            assert(sent);
            assert(address(this).balance == 0);
        } else {
            // Redeem.
            require(
                ITokenInterface(stakingToken).redeem(amount) == 0,
                "redeem failed"
            );

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

    /**
     * @notice Exit all staking rewards
     * @param toNative Unwrap to native token or not
     */
    function exitAll(bool toNative) public {
        address[] memory allStakingRewards = factory.getAllStakingRewards();
        exit(allStakingRewards, toNative);
    }

    /**
     * @notice Exit staking rewards
     * @param stakingRewards The list of staking rewards
     * @param toNative Unwrap to native token or not
     */
    function exit(address[] memory stakingRewards, bool toNative) public {
        for (uint256 i = 0; i < stakingRewards.length; i++) {
            uint256 balance = StakingRewardsInterface(stakingRewards[i])
                .balanceOf(msg.sender);
            if (balance > 0) {
                unstake(stakingRewards[i], balance, toNative);
                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 nonReentrant {
        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 {
        if (token == address(0)) {
            (bool sent, ) = owner().call{value: address(this).balance}("");
            assert(sent);
        } else {
            IERC20(token).safeTransfer(owner(), amount);
        }
        emit TokenSeized(token, amount);
    }

    receive() external payable {}
}

File 9 of 12 : 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 mintNative() external payable returns (uint256);

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

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

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

pragma solidity ^0.8.0;

interface IWrappedNative {
    function deposit() external payable;

    function withdraw(uint wad) external;
}

File 11 of 12 : 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 12 of 12 : 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"},{"internalType":"address","name":"_wrappedNative","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[]"},{"internalType":"bool","name":"toNative","type":"bool"}],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"toNative","type":"bool"}],"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":[],"name":"stakeNative","outputs":[],"stateMutability":"payable","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"},{"internalType":"bool","name":"toNative","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedNative","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162002e2438038062002e248339810160408190526200003491620000c8565b6200003f336200005b565b600180556001600160a01b039182166080521660a05262000100565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000c357600080fd5b919050565b60008060408385031215620000dc57600080fd5b620000e783620000ab565b9150620000f760208401620000ab565b90509250929050565b60805160a051612cb162000173600039600081816102e8015281816105f5015261095001526000818161021a0152818161036e0152818161097b01528181610a3101528181610d8201528181610e38015281816113080152818161188301528181611bd80152611e1f0152612cb16000f3fe6080604052600436106101025760003560e01c8063c45a015511610095578063e8bb4d6d11610064578063e8bb4d6d146102b6578063eb6d3a11146102d6578063eb9253c01461030a578063f2fde38b1461032a578063f9f031df1461034a57600080fd5b8063c45a015514610208578063d3e64cab1461023c578063d877d5c414610269578063dac3fc3f1461028957600080fd5b80638da5cb5b116100d15780638da5cb5b14610162578063adc9772e14610199578063b2989f5d146101b9578063b40cd21d146101e657600080fd5b80630b83a7271461010e57806321d0af3414610125578063590fcdda14610145578063715018a61461014d57600080fd5b3661010957005b600080fd5b34801561011a57600080fd5b5061012361036a565b005b34801561013157600080fd5b50610123610140366004612485565b610400565b6101236108f4565b34801561015957600080fd5b50610123610ce5565b34801561016e57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101a557600080fd5b506101236101b43660046124c7565b610d1b565b3480156101c557600080fd5b506101d96101d43660046124f3565b6111e0565b60405161019091906125a6565b3480156101f257600080fd5b506101fb611302565b60405161019091906125b9565b34801561021457600080fd5b5061017c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561024857600080fd5b5061025c61025736600461269a565b611805565b6040516101909190612722565b34801561027557600080fd5b50610123610284366004612877565b611a82565b34801561029557600080fd5b506102a96102a43660046124f3565b611bd2565b60405161019091906128c9565b3480156102c257600080fd5b506101236102d1366004612929565b611e1b565b3480156102e257600080fd5b5061017c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561031657600080fd5b506101236103253660046124c7565b611eb3565b34801561033657600080fd5b506101236103453660046124f3565b611fc0565b34801561035657600080fd5b50610123610365366004612946565b612058565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156103ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103f2919081019061297b565b90506103fd81612058565b50565b6002600154141561042c5760405162461bcd60e51b815260040161042390612a0a565b60405180910390fd5b60026001558161044e5760405162461bcd60e51b815260040161042390612a41565b6000836001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa15801561048e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b29190612a69565b90506001600160a01b0381166104da5760405162461bcd60e51b815260040161042390612a86565b6000816001600160a01b0316636f307dc36040518163ffffffff1660e01b8152600401602060405180830381865afa15801561051a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053e9190612a69565b90506001600160a01b03811661058b5760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420756e6465726c79696e6760701b6044820152606401610423565b604051636da8c6d960e11b8152336004820152602481018590526001600160a01b0386169063db518db290604401600060405180830381600087803b1580156105d357600080fd5b505af11580156105e7573d6000803e3d6000fd5b5050505082801561062957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316145b1561074957604051634bf03edf60e01b8152600481018590526001600160a01b03831690634bf03edf906024016020604051808303816000875af1158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190612ab5565b156106dd5760405162461bcd60e51b81526020600482015260146024820152731c995919595b481b985d1a5d994819985a5b195960621b6044820152606401610423565b604051600090339047908381818185875af1925050503d806000811461071f576040519150601f19603f3d011682016040523d82523d6000602084013e610724565b606091505b505090508061073557610735612ace565b471561074357610743612ace565b506108e9565b60405163db006a7560e01b8152600481018590526001600160a01b0383169063db006a75906024016020604051808303816000875af1158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190612ab5565b156107f15760405162461bcd60e51b815260206004820152600d60248201526c1c995919595b4819985a5b1959609a1b6044820152606401610423565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610838573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085c9190612ab5565b90506108726001600160a01b038316338361211e565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa1580156108b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108da9190612ab5565b156108e7576108e7612ace565b505b505060018055505050565b600260015414156109175760405162461bcd60e51b815260040161042390612a0a565b6002600155346109395760405162461bcd60e51b815260040161042390612a41565b604051630a69c70f60e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906329a71c3c90602401602060405180830381865afa1580156109c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e89190612a69565b90506001600160a01b038116610a105760405162461bcd60e51b815260040161042390612a86565b6040516210f7f160e91b81526001600160a01b0382811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906321efe20090602401602060405180830381865afa158015610a7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9e9190612a69565b90506001600160a01b038116610af25760405162461bcd60e51b81526020600482015260196024820152781cdd185ada5b99c81c995dd85c991cc81b9bdd08195e1a5cdd603a1b6044820152606401610423565b816001600160a01b031663219f2fe7346040518263ffffffff1660e01b815260040160206040518083038185885af1158015610b32573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610b579190612ab5565b15610b995760405162461bcd60e51b81526020600482015260126024820152711b5a5b9d081b985d1a5d994819985a5b195960721b6044820152606401610423565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c049190612ab5565b60405163095ea7b360e01b81526001600160a01b038481166004830152602482018390529192509084169063095ea7b3906044016020604051808303816000875af1158015610c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7b9190612ae4565b506040516305dc812160e31b8152336004820152602481018290526001600160a01b03831690632ee4090890604401600060405180830381600087803b158015610cc457600080fd5b505af1158015610cd8573d6000803e3d6000fd5b5050600180555050505050565b6000546001600160a01b03163314610d0f5760405162461bcd60e51b815260040161042390612b01565b610d196000612181565b565b60026001541415610d3e5760405162461bcd60e51b815260040161042390612a0a565b600260015580610d605760405162461bcd60e51b815260040161042390612a41565b604051630a69c70f60e21b81526001600160a01b0383811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906329a71c3c90602401602060405180830381865afa158015610dcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610def9190612a69565b90506001600160a01b038116610e175760405162461bcd60e51b815260040161042390612a86565b6040516210f7f160e91b81526001600160a01b0382811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906321efe20090602401602060405180830381865afa158015610e81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea59190612a69565b90506001600160a01b038116610ef95760405162461bcd60e51b81526020600482015260196024820152781cdd185ada5b99c81c995dd85c991cc81b9bdd08195e1a5cdd603a1b6044820152606401610423565b610f0e6001600160a01b0385163330866121d1565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820185905285169063095ea7b3906044016020604051808303816000875af1158015610f5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f819190612ae4565b5060405163140e25ad60e31b8152600481018490526001600160a01b0383169063a0712d68906024016020604051808303816000875af1158015610fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fed9190612ab5565b156110285760405162461bcd60e51b815260206004820152600b60248201526a1b5a5b9d0819985a5b195960aa1b6044820152606401610423565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561106f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110939190612ab5565b60405163095ea7b360e01b81526001600160a01b038481166004830152602482018390529192509084169063095ea7b3906044016020604051808303816000875af11580156110e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110a9190612ae4565b506040516305dc812160e31b8152336004820152602481018290526001600160a01b03831690632ee4090890604401600060405180830381600087803b15801561115357600080fd5b505af1158015611167573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a082319150602401602060405180830381865afa1580156111af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d39190612ab5565b156108e9576108e9612ace565b611210604051806060016040528060006001600160a01b0316815260200160608152602001600060ff1681525090565b6040518060600160405280836001600160a01b03168152602001836001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015611268573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112909190810190612b36565b8152602001836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190612bca565b60ff16905292915050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611364573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261138c919081019061297b565b90506000815167ffffffffffffffff8111156113aa576113aa612798565b60405190808252806020026020018201604052801561141657816020015b6114036040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001606081525090565b8152602001906001900390816113c85790505b50905060005b82518110156117fe57600083828151811061143957611439612bed565b602002602001015190506000816001600160a01b0316638040c65b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611483573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114ab919081019061297b565b90506000815167ffffffffffffffff8111156114c9576114c9612798565b60405190808252806020026020018201604052801561150e57816020015b60408051808201909152600080825260208201528152602001906001900390816114e75790505b50905060005b82518110156115fe57600083828151811061153157611531612bed565b602090810291909101015160405163ea7cbff160e01b81526001600160a01b03808316600483015291925060009187169063ea7cbff190602401602060405180830381865afa158015611588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ac9190612ab5565b90506040518060400160405280836001600160a01b03168152602001828152508484815181106115de576115de612bed565b6020026020010181905250505080806115f690612c19565b915050611514565b506000836001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa15801561163f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116639190612a69565b90506000846001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c99190612ab5565b90506000826001600160a01b031663ae9d70b06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f9190612ab5565b90506000836001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611771573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117959190612ab5565b90506040518060a00160405280856001600160a01b03168152602001848152602001838152602001828152602001868152508989815181106117d9576117d9612bed565b60200260200101819052505050505050505080806117f690612c19565b91505061141c565b5092915050565b606060008267ffffffffffffffff81111561182257611822612798565b60405190808252806020026020018201604052801561187c57816020015b6040805160a081018252600091810182815260608083015260808201839052815260208101919091528152602001906001900390816118405790505b50905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa1580156118df573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611907919081019061297b565b905060005b84811015611a75576000805b8351811015611a0557600084828151811061193557611935612bed565b60200260200101519050806001600160a01b031663211dc32d8a8a8781811061196057611960612bed565b905060200201602081019061197591906124f3565b6040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908d166024820152604401602060405180830381865afa1580156119c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e59190612ab5565b6119ef9084612c34565b92505080806119fd90612c19565b915050611918565b506040518060400160405280611a3b898986818110611a2657611a26612bed565b90506020020160208101906101d491906124f3565b815260200182815250848381518110611a5657611a56612bed565b6020026020010181905250508080611a6d90612c19565b91505061190c565b50909150505b9392505050565b60005b8251811015611bcd576000838281518110611aa257611aa2612bed565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611af2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b169190612ab5565b90508015611bba57611b42848381518110611b3357611b33612bed565b60200260200101518285610400565b838281518110611b5457611b54612bed565b602090810291909101015160405163055de27560e01b81523360048201526001600160a01b039091169063055de27590602401600060405180830381600087803b158015611ba157600080fd5b505af1158015611bb5573d6000803e3d6000fd5b505050505b5080611bc581612c19565b915050611a85565b505050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611c34573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c5c919081019061297b565b90506000815167ffffffffffffffff811115611c7a57611c7a612798565b604051908082528060200260200182016040528015611cbf57816020015b6040805180820190915260008082526020820152815260200190600190039081611c985790505b50905060005b8251811015611e13576000838281518110611ce257611ce2612bed565b602002602001015190506000816001600160a01b0316639f9106d16040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d509190612a69565b6040516370a0823160e01b81526001600160a01b0389811660048301529192506000918416906370a0823190602401602060405180830381865afa158015611d9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc09190612ab5565b90506040518060400160405280836001600160a01b0316815260200182815250858581518110611df257611df2612bed565b60200260200101819052505050508080611e0b90612c19565b915050611cc5565b509392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663918e4c0d6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611e7b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ea3919081019061297b565b9050611eaf8183611a82565b5050565b6000546001600160a01b03163314611edd5760405162461bcd60e51b815260040161042390612b01565b6001600160a01b038216611f5457600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b5050905080611f4e57611f4e612ace565b50611f7a565b611f7a611f696000546001600160a01b031690565b6001600160a01b038416908361211e565b604080516001600160a01b0384168152602081018390527fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b6910160405180910390a15050565b6000546001600160a01b03163314611fea5760405162461bcd60e51b815260040161042390612b01565b6001600160a01b03811661204f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610423565b6103fd81612181565b6002600154141561207b5760405162461bcd60e51b815260040161042390612a0a565b600260015560005b81518110156121165781818151811061209e5761209e612bed565b602090810291909101015160405163055de27560e01b81523360048201526001600160a01b039091169063055de27590602401600060405180830381600087803b1580156120eb57600080fd5b505af11580156120ff573d6000803e3d6000fd5b50505050808061210e90612c19565b915050612083565b505060018055565b6040516001600160a01b038316602482015260448101829052611bcd90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261220f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526122099085906323b872dd60e01b9060840161214a565b50505050565b6000612264826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122e19092919063ffffffff16565b805190915015611bcd57808060200190518101906122829190612ae4565b611bcd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610423565b60606122f084846000856122f8565b949350505050565b6060824710156123595760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610423565b6001600160a01b0385163b6123b05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610423565b600080866001600160a01b031685876040516123cc9190612c4c565b60006040518083038185875af1925050503d8060008114612409576040519150601f19603f3d011682016040523d82523d6000602084013e61240e565b606091505b509150915061241e828286612429565b979650505050505050565b60608315612438575081611a7b565b8251156124485782518084602001fd5b8160405162461bcd60e51b81526004016104239190612c68565b6001600160a01b03811681146103fd57600080fd5b80151581146103fd57600080fd5b60008060006060848603121561249a57600080fd5b83356124a581612462565b92506020840135915060408401356124bc81612477565b809150509250925092565b600080604083850312156124da57600080fd5b82356124e581612462565b946020939093013593505050565b60006020828403121561250557600080fd5b8135611a7b81612462565b60005b8381101561252b578181015183820152602001612513565b838111156122095750506000910152565b60008151808452612554816020860160208601612510565b601f01601f19169290920160200192915050565b60018060a01b038151168252600060208201516060602085015261258f606085018261253c565b60409384015160ff16949093019390935250919050565b602081526000611a7b6020830184612568565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561268b57898403603f19018652825180516001600160a01b03168552888101518986015287810151888601526060808201519086015260809081015160a0918601829052805191860182905289019060c086019084905b808210156126765761266283855180516001600160a01b03168252602090810151910152565b928b0192918a01916001919091019061263c565b505096890196945050918701916001016125e1565b50919998505050505050505050565b6000806000604084860312156126af57600080fd5b83356126ba81612462565b9250602084013567ffffffffffffffff808211156126d757600080fd5b818601915086601f8301126126eb57600080fd5b8135818111156126fa57600080fd5b8760208260051b850101111561270f57600080fd5b6020830194508093505050509250925092565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561278a57888303603f190185528151805187855261276d88860182612568565b918901519489019490945294870194925090860190600101612749565b509098975050505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156127d7576127d7612798565b604052919050565b600067ffffffffffffffff8211156127f9576127f9612798565b5060051b60200190565b600082601f83011261281457600080fd5b81356020612829612824836127df565b6127ae565b82815260059290921b8401810191818101908684111561284857600080fd5b8286015b8481101561286c57803561285f81612462565b835291830191830161284c565b509695505050505050565b6000806040838503121561288a57600080fd5b823567ffffffffffffffff8111156128a157600080fd5b6128ad85828601612803565b92505060208301356128be81612477565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b8281101561291c5761290c84835180516001600160a01b03168252602090810151910152565b92840192908501906001016128e6565b5091979650505050505050565b60006020828403121561293b57600080fd5b8135611a7b81612477565b60006020828403121561295857600080fd5b813567ffffffffffffffff81111561296f57600080fd5b6122f084828501612803565b6000602080838503121561298e57600080fd5b825167ffffffffffffffff8111156129a557600080fd5b8301601f810185136129b657600080fd5b80516129c4612824826127df565b81815260059190911b820183019083810190878311156129e357600080fd5b928401925b8284101561241e5783516129fb81612462565b825292840192908401906129e8565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b600060208284031215612a7b57600080fd5b8151611a7b81612462565b60208082526015908201527434b73b30b634b21039ba30b5b4b733903a37b5b2b760591b604082015260600190565b600060208284031215612ac757600080fd5b5051919050565b634e487b7160e01b600052600160045260246000fd5b600060208284031215612af657600080fd5b8151611a7b81612477565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215612b4857600080fd5b815167ffffffffffffffff80821115612b6057600080fd5b818401915084601f830112612b7457600080fd5b815181811115612b8657612b86612798565b612b99601f8201601f19166020016127ae565b9150808252856020828501011115612bb057600080fd5b612bc1816020840160208601612510565b50949350505050565b600060208284031215612bdc57600080fd5b815160ff81168114611a7b57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c2d57612c2d612c03565b5060010190565b60008219821115612c4757612c47612c03565b500190565b60008251612c5e818460208701612510565b9190910192915050565b602081526000611a7b602083018461253c56fea26469706673582212207b3750ecd64cbc1cad81fa3cb1f69fcbc4569c71388fe23edf4c96886ff2d46464736f6c634300080b003300000000000000000000000035f70ce60f049a8c21721c53a1dfccb5bf4a1ea80000000000000000000000004200000000000000000000000000000000000006

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

00000000000000000000000035f70ce60f049a8c21721c53a1dfccb5bf4a1ea80000000000000000000000004200000000000000000000000000000000000006

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

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


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