ETH Price: $2,680.70 (+1.92%)
Gas: 1 Gwei

Contract

0xa092982764b223bACAC64422F4862Fff52eCAFf6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Flash Stake RETH175100532023-06-18 23:53:11419 days ago1687132391IN
0xa0929827...f52eCAFf6
0 ETH0.0132709116.85495518
Flash Stake RETH174929042023-06-16 14:10:59421 days ago1686924659IN
0xa0929827...f52eCAFf6
0 ETH0.0216706927.08890702
Flash Stake RETH173991612023-06-03 9:06:11435 days ago1685783171IN
0xa0929827...f52eCAFf6
0 ETH0.0194064422.69032093
Flash Stake RETH173964392023-06-02 23:56:59435 days ago1685750219IN
0xa0929827...f52eCAFf6
0 ETH0.0204889426.40375303
Flash Stake RETH173893582023-06-01 23:58:47436 days ago1685663927IN
0xa0929827...f52eCAFf6
0 ETH0.0289032928.19652572
Flash Stake RETH173822532023-05-31 23:57:35437 days ago1685577455IN
0xa0929827...f52eCAFf6
0 ETH0.0168291421.71273075
Stake RETH173241922023-05-23 20:06:35445 days ago1684872395IN
0xa0929827...f52eCAFf6
0 ETH0.0848807779.9235939
Flash Stake RETH173182492023-05-22 23:58:47446 days ago1684799927IN
0xa0929827...f52eCAFf6
0 ETH0.0387980642.07768766
Flash Stake RETH173101072023-05-21 20:29:11447 days ago1684700951IN
0xa0929827...f52eCAFf6
0 ETH0.0398170939.64977611
Flash Stake RETH173100192023-05-21 20:11:23447 days ago1684699883IN
0xa0929827...f52eCAFf6
0 ETH0.0387076637.86524094
Flash Stake RETH173080832023-05-21 13:37:47447 days ago1684676267IN
0xa0929827...f52eCAFf6
0 ETH0.0420731837.11352337
Flash Stake RETH173027552023-05-20 19:37:35448 days ago1684611455IN
0xa0929827...f52eCAFf6
0 ETH0.0384249933.39372564
Flash Stake RETH172991292023-05-20 7:23:11449 days ago1684567391IN
0xa0929827...f52eCAFf6
0 ETH0.0332192432.47520909
Flash Stake RETH172974102023-05-20 1:34:47449 days ago1684546487IN
0xa0929827...f52eCAFf6
0 ETH0.0273719634.76586576
Flash Stake RETH172955152023-05-19 19:10:11449 days ago1684523411IN
0xa0929827...f52eCAFf6
0 ETH0.0612917853.48794653
Flash Stake RETH172919832023-05-19 7:13:11450 days ago1684480391IN
0xa0929827...f52eCAFf6
0 ETH0.0302120338.32551144
Flash Stake RETH172917402023-05-19 6:23:35450 days ago1684477415IN
0xa0929827...f52eCAFf6
0 ETH0.0544581734.60313826
Flash Stake RETH172908762023-05-19 3:26:59450 days ago1684466819IN
0xa0929827...f52eCAFf6
0 ETH0.0297741637.54562507
Flash Stake RETH172901002023-05-19 0:49:47450 days ago1684457387IN
0xa0929827...f52eCAFf6
0 ETH0.0316580740.15886106
Flash Stake RETH172897652023-05-18 23:41:47450 days ago1684453307IN
0xa0929827...f52eCAFf6
0 ETH0.0270731734.13602593
Stake RETH172893162023-05-18 22:10:59450 days ago1684447859IN
0xa0929827...f52eCAFf6
0 ETH0.0334841246.71908492
Flash Stake RETH172890272023-05-18 21:12:59450 days ago1684444379IN
0xa0929827...f52eCAFf6
0 ETH0.0528341448.24216377
Flash Stake RETH172886862023-05-18 20:03:23450 days ago1684440203IN
0xa0929827...f52eCAFf6
0 ETH0.0611369576.10431103
0x61010060172881572023-05-18 18:16:47450 days ago1684433807IN
 Create: FlashProtocolProxyRocketPool
0 ETH0.103812865

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
175100532023-06-18 23:53:11419 days ago1687132391
0xa0929827...f52eCAFf6
1.15420576 ETH
175100532023-06-18 23:53:11419 days ago1687132391
0xa0929827...f52eCAFf6
1.15420576 ETH
174929042023-06-16 14:10:59421 days ago1686924659
0xa0929827...f52eCAFf6
21.48063957 ETH
174929042023-06-16 14:10:59421 days ago1686924659
0xa0929827...f52eCAFf6
21.48063957 ETH
173991612023-06-03 9:06:11435 days ago1685783171
0xa0929827...f52eCAFf6
5.98245842 ETH
173991612023-06-03 9:06:11435 days ago1685783171
0xa0929827...f52eCAFf6
5.98245842 ETH
173964392023-06-02 23:56:59435 days ago1685750219
0xa0929827...f52eCAFf6
1.07284766 ETH
173964392023-06-02 23:56:59435 days ago1685750219
0xa0929827...f52eCAFf6
1.07284766 ETH
173893582023-06-01 23:58:47436 days ago1685663927
0xa0929827...f52eCAFf6
1.13380587 ETH
173893582023-06-01 23:58:47436 days ago1685663927
0xa0929827...f52eCAFf6
1.13380587 ETH
173822532023-05-31 23:57:35437 days ago1685577455
0xa0929827...f52eCAFf6
1.07365123 ETH
173822532023-05-31 23:57:35437 days ago1685577455
0xa0929827...f52eCAFf6
1.07365123 ETH
173241922023-05-23 20:06:35445 days ago1684872395
0xa0929827...f52eCAFf6
93.76786495 ETH
173241922023-05-23 20:06:35445 days ago1684872395
0xa0929827...f52eCAFf6
93.76786495 ETH
173182492023-05-22 23:58:47446 days ago1684799927
0xa0929827...f52eCAFf6
46.07539125 ETH
173182492023-05-22 23:58:47446 days ago1684799927
0xa0929827...f52eCAFf6
46.07539125 ETH
173101072023-05-21 20:29:11447 days ago1684700951
0xa0929827...f52eCAFf6
40.47974999 ETH
173101072023-05-21 20:29:11447 days ago1684700951
0xa0929827...f52eCAFf6
40.47974999 ETH
173100192023-05-21 20:11:23447 days ago1684699883
0xa0929827...f52eCAFf6
24.48774999 ETH
173100192023-05-21 20:11:23447 days ago1684699883
0xa0929827...f52eCAFf6
24.48774999 ETH
173080832023-05-21 13:37:47447 days ago1684676267
0xa0929827...f52eCAFf6
117.94099999 ETH
173080832023-05-21 13:37:47447 days ago1684676267
0xa0929827...f52eCAFf6
117.94099999 ETH
173027552023-05-20 19:37:35448 days ago1684611455
0xa0929827...f52eCAFf6
107.12350085 ETH
173027552023-05-20 19:37:35448 days ago1684611455
0xa0929827...f52eCAFf6
107.12350085 ETH
172991292023-05-20 7:23:11449 days ago1684567391
0xa0929827...f52eCAFf6
26.784808 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FlashProtocolProxyRocketPool

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 14 : FlashProtocolProxyRocketPool.sol
// SPDX-License-Identifier: BUSL-1.1
// Licensor: Flashstake DAO
// Licensed Works: (this contract, source below)
// Change Date: The earlier of 2026-12-01 or a date specified by Flashstake DAO publicly
// Change License: GNU General Public License v2.0 or later
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./interfaces/Flashstake/IFlashProtocol.sol";
import "./interfaces/Flashstake/IFlashStrategy.sol";
import "./interfaces/Flashstake/IFlashNFT.sol";
import "./interfaces/ISwapRouter.sol";
import "./interfaces/IWETH.sol";
import "./interfaces/RocketPool/RocketStorageInterface.sol";
import "./interfaces/RocketPool/RocketTokenRETHInterface.sol";

contract FlashProtocolProxyRocketPool is Ownable {
    using SafeERC20 for IERC20;

    address public immutable flashProtocolAddress;
    address payable public immutable nativeWrappedTokenAddress;
    address payable public immutable routerContractAddress;
    address immutable flashNFTAddress;

    RocketStorageInterface public rocketStorage;

    constructor(
        address _flashProtocolAddress,
        address payable _routerContractAddress,
        address payable _nativeWrappedTokenAddress,
        address _rocketStorageAddress
    ) {
        flashProtocolAddress = _flashProtocolAddress;
        routerContractAddress = _routerContractAddress;
        nativeWrappedTokenAddress = _nativeWrappedTokenAddress;
        rocketStorage = RocketStorageInterface(_rocketStorageAddress);

        flashNFTAddress = IFlashProtocol(flashProtocolAddress).flashNFTAddress();
    }

    /// @notice Wrapper to allow users to stake rETH into WETH strategies
    /// @dev Not permissioned: callable by anyone
    function stakeRETH(
        address _strategyAddress,
        uint256 _tokenAmount,
        uint256 _stakeDuration,
        address _fTokensTo
    ) external returns (IFlashProtocol.StakeStruct memory) {
        IERC20 pToken = IERC20(IFlashStrategy(_strategyAddress).getPrincipalAddress());
        require(address(pToken) == nativeWrappedTokenAddress, "NON WETH STRATEGY");

        address rETHAddress = rocketStorage.getAddress(keccak256(abi.encodePacked("contract.address", "rocketTokenRETH")));

        // Transfer rETH from User into Contract
        IERC20(rETHAddress).safeTransferFrom(msg.sender, address(this), _tokenAmount);

        // Extract ETH from rETH via RocketPool
        RocketTokenRETHInterface(rETHAddress).approve(rETHAddress, _tokenAmount);
        RocketTokenRETHInterface(rETHAddress).burn(_tokenAmount);
        uint256 _newTokenAmount = address(this).balance;
        IWETH(nativeWrappedTokenAddress).deposit{ value: _newTokenAmount }();

        IWETH(nativeWrappedTokenAddress).approve(flashProtocolAddress, _newTokenAmount);
        IFlashProtocol.StakeStruct memory stakeInfo = IFlashProtocol(flashProtocolAddress).stake(
            _strategyAddress,
            _newTokenAmount,
            _stakeDuration,
            _fTokensTo,
            true
        );

        IFlashNFT(flashNFTAddress).safeTransferFrom(address(this), msg.sender, stakeInfo.nftId);

        return stakeInfo;
    }


    /// @notice Wrapper to allow users to Flashstake then burn and/or swap their fTokens in one tx
    /// @notice This will convert rETH into WETH and Flashstake into a compatible Flashstake Strategy
    /// @dev Not permissioned. Beware: DO NOT pass 0 into _burnFTokenAmount unless you know exactly what you are doing
    function flashStakeRETH(
        address _strategyAddress,
        uint256 _tokenAmount,
        uint256 _stakeDuration,
        uint256 _burnFTokenAmount,
        uint256 _swapFTokenAmount,
        uint256 _minimumReturnedBurn,
        uint256 _minimumReturnedSwap,
        bytes calldata _swapRoute,
        address _yieldTo
    ) external {
        IERC20 pToken = IERC20(IFlashStrategy(_strategyAddress).getPrincipalAddress());
        require(address(pToken) == nativeWrappedTokenAddress, "NON WETH STRATEGY");

        address rETHAddress = rocketStorage.getAddress(keccak256(abi.encodePacked("contract.address", "rocketTokenRETH")));

        // Transfer rETH from User into Contract
        IERC20(rETHAddress).safeTransferFrom(msg.sender, address(this), _tokenAmount);

        // Extract ETH from rETH via RocketPool
        RocketTokenRETHInterface(rETHAddress).approve(rETHAddress, _tokenAmount);
        RocketTokenRETHInterface(rETHAddress).burn(_tokenAmount);
        uint256 _newTokenAmount = address(this).balance;
        IWETH(nativeWrappedTokenAddress).deposit{ value: _newTokenAmount }();

        flashStakeInternal(
            _strategyAddress,
            _newTokenAmount,
            _stakeDuration,
            _burnFTokenAmount,
            _swapFTokenAmount,
            _minimumReturnedBurn,
            _minimumReturnedSwap,
            _swapRoute,
            _yieldTo
        );
    }

    /// @notice Internal function wrapper for flashstaking
    /// @dev This can only be called internally
    function flashStakeInternal(
        address _strategyAddress,
        uint256 _tokenAmount,
        uint256 _stakeDuration,
        uint256 _burnFTokenAmount,
        uint256 _swapFTokenAmount,
        uint256 _minimumReturnedBurn,
        uint256 _minimumReturnedSwap,
        bytes calldata _swapRoute,
        address _yieldTo
    ) private {
        IERC20 principalContract = IERC20(IFlashStrategy(_strategyAddress).getPrincipalAddress());

        principalContract.approve(flashProtocolAddress, _tokenAmount);
        IFlashProtocol.StakeStruct memory stakeInfo = IFlashProtocol(flashProtocolAddress).stake(
            _strategyAddress,
            _tokenAmount,
            _stakeDuration,
            address(this),
            true
        );

        require(_burnFTokenAmount + _swapFTokenAmount == stakeInfo.fTokensToUser, "SWAP AND/OR BURN AMOUNT INVALID");

        burnAndSwapFTokenInternal(
            _strategyAddress,
            _burnFTokenAmount,
            _swapFTokenAmount,
            _minimumReturnedBurn,
            _minimumReturnedSwap,
            _swapRoute,
            _yieldTo
        );

        IFlashNFT(flashNFTAddress).safeTransferFrom(address(this), msg.sender, stakeInfo.nftId);
    }

    /// @notice Internal wrapper, burns/swaps fTokens as per user inputs
    /// @dev This can only be called internally
    function burnAndSwapFTokenInternal(
        address _strategyAddress,
        uint256 _burnFTokenAmount,
        uint256 _swapFTokenAmount,
        uint256 _minimumReturnedBurn,
        uint256 _minimumReturnedSwap,
        bytes calldata _swapRoute,
        address _yieldTo
    ) private {
        IERC20 fToken = IERC20(IFlashStrategy(_strategyAddress).getFTokenAddress());

        // @note Relying on FlashStrategy handling ensuring minimum is returned
        // @note V2:  Only burn fTokens if the user is expecting back (_minimumReturnedBurn) more than 0 tokens
        // @note      otherwise trap fTokens within this contract and avoid burning
        if (_burnFTokenAmount > 0 && _minimumReturnedBurn > 0) {
            fToken.approve(_strategyAddress, _burnFTokenAmount);
            IFlashStrategy(_strategyAddress).burnFToken(_burnFTokenAmount, _minimumReturnedBurn, _yieldTo);
        }

        // @note Relying on Uniswap handling ensuring minimum is returned
        if (_swapFTokenAmount > 0) {
            fToken.approve(routerContractAddress, _swapFTokenAmount);
            ISwapRouter(routerContractAddress).exactInput{ value: 0 }(
                ISwapRouter.ExactInputParams({
            path: _swapRoute,
            recipient: _yieldTo,
            amountIn: _swapFTokenAmount,
            amountOutMinimum: _minimumReturnedSwap
            })
            );
        }
    }

    /// @notice Allows owner to withdraw any ERC20 token to a _recipient address - used for fToken rescue
    /// @dev This can be called by the Owner only
    function withdrawERC20(address[] calldata _tokenAddresses, address _recipient) external onlyOwner {
        for (uint256 i = 0; i < _tokenAddresses.length; i++) {
            // Transfer all the tokens to the caller
            uint256 totalBalance = IERC20(_tokenAddresses[i]).balanceOf(address(this));
            IERC20(_tokenAddresses[i]).safeTransfer(_recipient, totalBalance);
        }
    }

    fallback() external payable {}
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 3 of 14 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 4 of 14 : 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 5 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

    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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 6 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

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

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

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

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

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

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

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

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

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

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

File 7 of 14 : 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 14 : IFlashNFT.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;

interface IFlashNFT {
    function approve(address to, uint256 tokenId) external;

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

    function burn(uint256 _tokenId) external returns (bool);

    function contractURI() external pure returns (string memory);

    function exists(uint256 _tokenId) external view returns (bool);

    function getApproved(uint256 tokenId) external view returns (address);

    function isApprovedForAll(address owner, address operator) external view returns (bool);

    function mint(address _recipientAddress) external returns (uint256);

    function name() external view returns (string memory);

    function owner() external view returns (address);

    function ownerOf(uint256 tokenId) external view returns (address);

    function renounceOwnership() external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata _data
    ) external;

    function setApprovalForAll(address operator, bool approved) external;

    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    function symbol() external view returns (string memory);

    function tokenURI(uint256 tokenId) external view returns (string memory);

    function totalSupply() external view returns (uint256);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function transferOwnership(address newOwner) external;
}

File 9 of 14 : IFlashProtocol.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;

interface IFlashProtocol {
    event StrategyRegistered(
        address indexed _strategyAddress,
        address indexed _principalTokenAddress,
        address indexed _fTokenAddress
    );
    event Staked(uint256 _stakeId);
    event Unstaked(uint256 _stakeId, uint256 _tokensReturned, uint256 _fTokensBurned, bool _stakeFinished);
    event NFTIssued(uint256 _stakeId, uint256 nftId);

    struct StakeStruct {
        address stakerAddress; // Address of staker
        address strategyAddress; // Address of strategy being used
        uint256 stakeStartTs; // Unix timestamp of when stake started
        uint256 stakeDuration; // Time in seconds from start time until stake ends
        uint256 stakedAmount; // The amount of tokens staked
        bool active; // Stake has been removed/unstaked
        uint256 nftId; // NFT id if set
        uint256 fTokensToUser; // How many fERC20 tokens were minted
        uint256 fTokensFee; // How many fERC20 tokens were taken as fee
        uint256 totalFTokenBurned;
        uint256 totalStakedWithdrawn;
    }

    function flashNFTAddress() external view returns (address);

    function flashStake(
        address _strategyAddress,
        uint256 _tokenAmount,
        uint256 _stakeDuration,
        uint256 _minimumReceived,
        address _yieldTo,
        bool _mintNFT
    ) external;

    function getStakeInfo(uint256 _id, bool _isNFT) external view returns (StakeStruct memory _stake);

    function issueNFT(uint256 _stakeId) external returns (uint256 _nftId);

    function owner() external view returns (address);

    function registerStrategy(
        address _strategyAddress,
        address _principalTokenAddress,
        string calldata _fTokenName,
        string calldata _fTokenSymbol
    ) external;

    function renounceOwnership() external;

    function setMintFeeInfo(address _feeRecipient, uint96 _feePercentageBasis) external;

    function stake(
        address _strategyAddress,
        uint256 _tokenAmount,
        uint256 _stakeDuration,
        address _fTokensTo,
        bool _issueNFT
    ) external returns (StakeStruct memory _stake);

    function transferOwnership(address newOwner) external;

    function unstake(
        uint256 _id,
        bool _isNFT,
        uint256 _fTokenToBurn
    ) external returns (uint256 _principalReturned, uint256 _fTokensBurned);
}

File 10 of 14 : IFlashStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IFlashStrategy {
    event BurnedFToken(address indexed _address, uint256 _tokenAmount, uint256 _yieldReturned);

    // This is how principal will be deposited into the contract
    // The Flash protocol allows the strategy to specify how much
    // should be registered. This allows the strategy to manipulate (eg take fee)
    // on the principal if the strategy requires
    function depositPrincipal(uint256 _tokenAmount) external returns (uint256);

    // This is how principal will be returned from the contract
    function withdrawPrincipal(uint256 _tokenAmount) external;

    // Responsible for instant upfront yield. Takes fERC20 tokens specific to this
    // strategy. The strategy is responsible for returning some amount of principal tokens
    function burnFToken(
        uint256 _tokenAmount,
        uint256 _minimumReturned,
        address _yieldTo
    ) external returns (uint256);

    // This should return the current total of all principal within the contract
    function getPrincipalBalance() external view returns (uint256);

    // This should return the current total of all yield generated to date (including bootstrapped tokens)
    function getYieldBalance() external view returns (uint256);

    // This should return the principal token address (eg DAI)
    function getPrincipalAddress() external view returns (address);

    // View function which quotes how many principal tokens would be returned if x
    // fERC20 tokens are burned
    function quoteMintFToken(uint256 _tokenAmount, uint256 duration) external view returns (uint256);

    // View function which quotes how many principal tokens would be returned if x
    // fERC20 tokens are burned
    // IMPORTANT NOTE: This should utilise bootstrap tokens if they exist
    // bootstrapped tokens are any principal tokens that exist within the smart contract
    function quoteBurnFToken(uint256 _tokenAmount) external view returns (uint256);

    // The function to set the fERC20 address within the strategy
    function setFTokenAddress(address _fTokenAddress) external;

    // This should return what the maximum stake duration is
    function getMaxStakeDuration() external view returns (uint256);

    function getFTokenAddress() external view returns (address);
}

File 11 of 14 : ISwapRouter.sol
pragma solidity ^0.8.4;

interface ISwapRouter {
    function WETH9() external view returns (address);

    function exactInput(ISwapRouter.ExactInputParams memory params) external payable returns (uint256 amountOut);

    function exactInputSingle(ISwapRouter.ExactOutputSingleParams memory params)
        external
        payable
        returns (uint256 amountOut);

    function exactOutput(ISwapRouter.ExactOutputParams memory params) external payable returns (uint256 amountIn);

    function exactOutputSingle(ISwapRouter.ExactOutputSingleParams memory params)
        external
        payable
        returns (uint256 amountIn);

    function factory() external view returns (address);

    function multicall(bytes[] memory data) external payable returns (bytes[] memory results);

    function refundETH() external payable;

    function selfPermit(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitAllowed(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitAllowedIfNecessary(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function selfPermitIfNecessary(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    function sweepToken(
        address token,
        uint256 amountMinimum,
        address recipient
    ) external payable;

    function sweepTokenWithFee(
        address token,
        uint256 amountMinimum,
        address recipient,
        uint256 feeBips,
        address feeRecipient
    ) external payable;

    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes memory _data
    ) external;

    function unwrapWETH9(uint256 amountMinimum, address recipient) external payable;

    function unwrapWETH9WithFee(
        uint256 amountMinimum,
        address recipient,
        uint256 feeBips,
        address feeRecipient
    ) external payable;

    receive() external payable;

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }
}

File 12 of 14 : IWETH.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

interface IWETH {
    function name() external view returns (string memory);

    function approve(address guy, uint256 wad) external returns (bool);

    function totalSupply() external view returns (uint256);

    function transferFrom(
        address src,
        address dst,
        uint256 wad
    ) external returns (bool);

    function withdraw(uint256 wad) external;

    function decimals() external view returns (uint8);

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

    function symbol() external view returns (string memory);

    function transfer(address dst, uint256 wad) external returns (bool);

    function deposit() external payable;

    function allowance(address, address) external view returns (uint256);

    fallback() external payable;

    event Approval(address indexed src, address indexed guy, uint256 wad);
    event Transfer(address indexed src, address indexed dst, uint256 wad);
    event Deposit(address indexed dst, uint256 wad);
    event Withdrawal(address indexed src, uint256 wad);
}

File 13 of 14 : RocketStorageInterface.sol
pragma solidity >0.5.0 <0.9.0;

// SPDX-License-Identifier: GPL-3.0-only

interface RocketStorageInterface {

    // Deploy status
    function getDeployedStatus() external view returns (bool);

    // Guardian
    function getGuardian() external view returns(address);
    function setGuardian(address _newAddress) external;
    function confirmGuardian() external;

    // Getters
    function getAddress(bytes32 _key) external view returns (address);
    function getUint(bytes32 _key) external view returns (uint);
    function getString(bytes32 _key) external view returns (string memory);
    function getBytes(bytes32 _key) external view returns (bytes memory);
    function getBool(bytes32 _key) external view returns (bool);
    function getInt(bytes32 _key) external view returns (int);
    function getBytes32(bytes32 _key) external view returns (bytes32);

    // Setters
    function setAddress(bytes32 _key, address _value) external;
    function setUint(bytes32 _key, uint _value) external;
    function setString(bytes32 _key, string calldata _value) external;
    function setBytes(bytes32 _key, bytes calldata _value) external;
    function setBool(bytes32 _key, bool _value) external;
    function setInt(bytes32 _key, int _value) external;
    function setBytes32(bytes32 _key, bytes32 _value) external;

    // Deleters
    function deleteAddress(bytes32 _key) external;
    function deleteUint(bytes32 _key) external;
    function deleteString(bytes32 _key) external;
    function deleteBytes(bytes32 _key) external;
    function deleteBool(bytes32 _key) external;
    function deleteInt(bytes32 _key) external;
    function deleteBytes32(bytes32 _key) external;

    // Arithmetic
    function addUint(bytes32 _key, uint256 _amount) external;
    function subUint(bytes32 _key, uint256 _amount) external;

    // Protected storage
    function getNodeWithdrawalAddress(address _nodeAddress) external view returns (address);
    function getNodePendingWithdrawalAddress(address _nodeAddress) external view returns (address);
    function setWithdrawalAddress(address _nodeAddress, address _newWithdrawalAddress, bool _confirm) external;
    function confirmWithdrawalAddress(address _nodeAddress) external;
}

File 14 of 14 : RocketTokenRETHInterface.sol
pragma solidity >0.5.0 <0.9.0;

// SPDX-License-Identifier: GPL-3.0-only

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface RocketTokenRETHInterface is IERC20 {
    function getEthValue(uint256 _rethAmount) external view returns (uint256);
    function getRethValue(uint256 _ethAmount) external view returns (uint256);
    function getExchangeRate() external view returns (uint256);
    function getTotalCollateral() external view returns (uint256);
    function getCollateralRate() external view returns (uint256);
    function depositExcess() external payable;
    function depositExcessCollateral() external;
    function mint(uint256 _ethAmount, address _to) external;
    function burn(uint256 _rethAmount) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_flashProtocolAddress","type":"address"},{"internalType":"address payable","name":"_routerContractAddress","type":"address"},{"internalType":"address payable","name":"_nativeWrappedTokenAddress","type":"address"},{"internalType":"address","name":"_rocketStorageAddress","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"flashProtocolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_stakeDuration","type":"uint256"},{"internalType":"uint256","name":"_burnFTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_swapFTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_minimumReturnedBurn","type":"uint256"},{"internalType":"uint256","name":"_minimumReturnedSwap","type":"uint256"},{"internalType":"bytes","name":"_swapRoute","type":"bytes"},{"internalType":"address","name":"_yieldTo","type":"address"}],"name":"flashStakeRETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nativeWrappedTokenAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":[],"name":"rocketStorage","outputs":[{"internalType":"contract RocketStorageInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerContractAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_stakeDuration","type":"uint256"},{"internalType":"address","name":"_fTokensTo","type":"address"}],"name":"stakeRETH","outputs":[{"components":[{"internalType":"address","name":"stakerAddress","type":"address"},{"internalType":"address","name":"strategyAddress","type":"address"},{"internalType":"uint256","name":"stakeStartTs","type":"uint256"},{"internalType":"uint256","name":"stakeDuration","type":"uint256"},{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"nftId","type":"uint256"},{"internalType":"uint256","name":"fTokensToUser","type":"uint256"},{"internalType":"uint256","name":"fTokensFee","type":"uint256"},{"internalType":"uint256","name":"totalFTokenBurned","type":"uint256"},{"internalType":"uint256","name":"totalStakedWithdrawn","type":"uint256"}],"internalType":"struct IFlashProtocol.StakeStruct","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokenAddresses","type":"address[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162001d6c38038062001d6c833981016040819052620000359162000156565b6200004033620000ed565b6001600160a01b03848116608081905284821660c05283821660a052600180546001600160a01b0319169284169290921790915560408051631ae8718760e21b81529051636ba1c61c916004808201926020929091908290030181865afa158015620000b0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d69190620001be565b6001600160a01b031660e05250620001e592505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200015357600080fd5b50565b600080600080608085870312156200016d57600080fd5b84516200017a816200013d565b60208601519094506200018d816200013d565b6040860151909350620001a0816200013d565b6060860151909250620001b3816200013d565b939692955090935050565b600060208284031215620001d157600080fd5b8151620001de816200013d565b9392505050565b60805160a05160c05160e051611afa620002726000396000818161085f01526110580152600081816102210152818161133701526113b60152600081816101620152818161042d0152818161065e015281816107130152818161093a0152610b6601526000818160dc015281816106e4015281816107c401528181610e930152610f510152611afa6000f3fe6080604052600436106100a85760003560e01c80638da5cb5b11610063578063e2166fa71161004b578063e2166fa7146101cf578063f2fde38b146101ef578063f73bc0531461020f57005b80638da5cb5b14610184578063b248821b146101a257005b806367601a8e1161009157806367601a8e1461011b578063715018a61461013b57806389a208951461015057005b8063340ed32a146100aa5780636667d6e8146100ca575b005b3480156100b657600080fd5b506100a86100c5366004611617565b610243565b3480156100d657600080fd5b506100fe7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561012757600080fd5b506001546100fe906001600160a01b031681565b34801561014757600080fd5b506100a8610340565b34801561015c57600080fd5b506100fe7f000000000000000000000000000000000000000000000000000000000000000081565b34801561019057600080fd5b506000546001600160a01b03166100fe565b3480156101ae57600080fd5b506101c26101bd36600461169d565b610354565b60405161011291906116e7565b3480156101db57600080fd5b506100a86101ea366004611784565b6108d2565b3480156101fb57600080fd5b506100a861020a366004611855565b610bf9565b34801561021b57600080fd5b506100fe7f000000000000000000000000000000000000000000000000000000000000000081565b61024b610c89565b60005b8281101561033a57600084848381811061026a5761026a611879565b905060200201602081019061027f9190611855565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e9919061188f565b9050610327838287878681811061030257610302611879565b90506020020160208101906103179190611855565b6001600160a01b03169190610ce3565b5080610332816118be565b91505061024e565b50505050565b610348610c89565b6103526000610d78565b565b6103c560405180610160016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000856001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906118e2565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316146104b15760405162461bcd60e51b815260206004820152601160248201527f4e4f4e205745544820535452415445475900000000000000000000000000000060448201526064015b60405180910390fd5b6001546040516f636f6e74726163742e6164647265737360801b60208201526e0e4dec6d6cae8a8ded6cadca48aa89608b1b60308201526000916001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161053291815260200190565b602060405180830381865afa15801561054f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057391906118e2565b905061058a6001600160a01b038216333089610de0565b60405163095ea7b360e01b81526001600160a01b03821660048201819052602482018890529063095ea7b3906044016020604051808303816000875af11580156105d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fc919061190f565b50604051630852cd8d60e31b8152600481018790526001600160a01b038216906342966c6890602401600060405180830381600087803b15801561063f57600080fd5b505af1158015610653573d6000803e3d6000fd5b5050505060004790507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106b757600080fd5b505af11580156106cb573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925060440190506020604051808303816000875af1158015610760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610784919061190f565b50604051634360451760e01b81526001600160a01b03898116600483015260248201839052604482018890528681166064830152600160848301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063436045179060a401610160604051808303816000875af1158015610810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108349190611962565b60c0810151604051632142170760e11b815230600482015233602482015260448101919091529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156108ab57600080fd5b505af11580156108bf573d6000803e3d6000fd5b509296505050505050505b949350505050565b60008a6001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610912573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093691906118e2565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316146109b95760405162461bcd60e51b815260206004820152601160248201527f4e4f4e205745544820535452415445475900000000000000000000000000000060448201526064016104a8565b6001546040516f636f6e74726163742e6164647265737360801b60208201526e0e4dec6d6cae8a8ded6cadca48aa89608b1b60308201526000916001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610a3a91815260200190565b602060405180830381865afa158015610a57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7b91906118e2565b9050610a926001600160a01b03821633308e610de0565b60405163095ea7b360e01b81526001600160a01b03821660048201819052602482018d90529063095ea7b3906044016020604051808303816000875af1158015610ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b04919061190f565b50604051630852cd8d60e31b8152600481018c90526001600160a01b038216906342966c6890602401600060405180830381600087803b158015610b4757600080fd5b505af1158015610b5b573d6000803e3d6000fd5b5050505060004790507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610bbf57600080fd5b505af1158015610bd3573d6000803e3d6000fd5b5050505050610bea8d828d8d8d8d8d8d8d8d610e18565b50505050505050505050505050565b610c01610c89565b6001600160a01b038116610c7d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104a8565b610c8681610d78565b50565b6000546001600160a01b031633146103525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a8565b6040516001600160a01b038316602482015260448101829052610d7390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110ca565b505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261033a9085906323b872dd60e01b90608401610d0f565b60008a6001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7c91906118e2565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018d90529192509082169063095ea7b3906044016020604051808303816000875af1158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f13919061190f565b50604051634360451760e01b81526001600160a01b038c81166004830152602482018c9052604482018b9052306064830152600160848301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063436045179060a401610160604051808303816000875af1158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611962565b60e0810151909150610fd3898b611a06565b146110205760405162461bcd60e51b815260206004820152601f60248201527f5357415020414e442f4f52204255524e20414d4f554e5420494e56414c49440060448201526064016104a8565b6110308c8a8a8a8a8a8a8a6111af565b60c0810151604051632142170760e11b815230600482015233602482015260448101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156110a457600080fd5b505af11580156110b8573d6000803e3d6000fd5b50505050505050505050505050505050565b600061111f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114cf9092919063ffffffff16565b805190915015610d73578080602001905181019061113d919061190f565b610d735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104a8565b6000886001600160a01b031663272d28ca6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121391906118e2565b90506000881180156112255750600086115b1561131a5760405163095ea7b360e01b81526001600160a01b038a81166004830152602482018a905282169063095ea7b3906044016020604051808303816000875af1158015611279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129d919061190f565b50604051632ca6634360e11b815260048101899052602481018790526001600160a01b0383811660448301528a169063594cc686906064016020604051808303816000875af11580156112f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611318919061188f565b505b86156114c45760405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820189905282169063095ea7b3906044016020604051808303816000875af115801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b3919061190f565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b858183f6000604051806080016040528088888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160a01b038716602082015260408082018d905260609091018a9052517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815261147f9190600401611a6f565b60206040518083038185885af115801561149d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114c2919061188f565b505b505050505050505050565b60606108ca848460008585600080866001600160a01b031685876040516114f69190611abe565b60006040518083038185875af1925050503d8060008114611533576040519150601f19603f3d011682016040523d82523d6000602084013e611538565b606091505b509150915061154987838387611554565b979650505050505050565b606083156115c35782516000036115bc576001600160a01b0385163b6115bc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a8565b50816108ca565b6108ca83838151156115d85781518083602001fd5b8060405162461bcd60e51b81526004016104a89190611ada565b6001600160a01b0381168114610c8657600080fd5b8035611612816115f2565b919050565b60008060006040848603121561162c57600080fd5b833567ffffffffffffffff8082111561164457600080fd5b818601915086601f83011261165857600080fd5b81358181111561166757600080fd5b8760208260051b850101111561167c57600080fd5b60209283019550935050840135611692816115f2565b809150509250925092565b600080600080608085870312156116b357600080fd5b84356116be816115f2565b9350602085013592506040850135915060608501356116dc816115f2565b939692955090935050565b81516001600160a01b031681526101608101602083015161171360208401826001600160a01b03169052565b5060408301516040830152606083015160608301526080830151608083015260a083015161174560a084018215159052565b5060c083015160c083015260e083015160e083015261010080840151818401525061012080840151818401525061014080840151818401525092915050565b6000806000806000806000806000806101208b8d0312156117a457600080fd5b8a356117af816115f2565b995060208b0135985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b013567ffffffffffffffff808211156117f657600080fd5b818d0191508d601f83011261180a57600080fd5b81358181111561181957600080fd5b8e602082850101111561182b57600080fd5b6020830195508094505050506118446101008c01611607565b90509295989b9194979a5092959850565b60006020828403121561186757600080fd5b8135611872816115f2565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156118a157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016118d0576118d06118a8565b5060010190565b8051611612816115f2565b6000602082840312156118f457600080fd5b8151611872816115f2565b8051801515811461161257600080fd5b60006020828403121561192157600080fd5b611872826118ff565b604051610160810167ffffffffffffffff8111828210171561195c57634e487b7160e01b600052604160045260246000fd5b60405290565b6000610160828403121561197557600080fd5b61197d61192a565b611986836118d7565b8152611994602084016118d7565b60208201526040830151604082015260608301516060820152608083015160808201526119c360a084016118ff565b60a082015260c0838101519082015260e0808401519082015261010080840151908201526101208084015190820152610140928301519281019290925250919050565b80820180821115611a1957611a196118a8565b92915050565b60005b83811015611a3a578181015183820152602001611a22565b50506000910152565b60008151808452611a5b816020860160208601611a1f565b601f01601f19169290920160200192915050565b602081526000825160806020840152611a8b60a0840182611a43565b90506001600160a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b60008251611ad0818460208701611a1f565b9190910192915050565b6020815260006118726020830184611a4356fea164736f6c6343000811000a00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b900000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

Deployed Bytecode

0x6080604052600436106100a85760003560e01c80638da5cb5b11610063578063e2166fa71161004b578063e2166fa7146101cf578063f2fde38b146101ef578063f73bc0531461020f57005b80638da5cb5b14610184578063b248821b146101a257005b806367601a8e1161009157806367601a8e1461011b578063715018a61461013b57806389a208951461015057005b8063340ed32a146100aa5780636667d6e8146100ca575b005b3480156100b657600080fd5b506100a86100c5366004611617565b610243565b3480156100d657600080fd5b506100fe7f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b981565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561012757600080fd5b506001546100fe906001600160a01b031681565b34801561014757600080fd5b506100a8610340565b34801561015c57600080fd5b506100fe7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561019057600080fd5b506000546001600160a01b03166100fe565b3480156101ae57600080fd5b506101c26101bd36600461169d565b610354565b60405161011291906116e7565b3480156101db57600080fd5b506100a86101ea366004611784565b6108d2565b3480156101fb57600080fd5b506100a861020a366004611855565b610bf9565b34801561021b57600080fd5b506100fe7f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4581565b61024b610c89565b60005b8281101561033a57600084848381811061026a5761026a611879565b905060200201602081019061027f9190611855565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e9919061188f565b9050610327838287878681811061030257610302611879565b90506020020160208101906103179190611855565b6001600160a01b03169190610ce3565b5080610332816118be565b91505061024e565b50505050565b610348610c89565b6103526000610d78565b565b6103c560405180610160016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000856001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042991906118e2565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b0316146104b15760405162461bcd60e51b815260206004820152601160248201527f4e4f4e205745544820535452415445475900000000000000000000000000000060448201526064015b60405180910390fd5b6001546040516f636f6e74726163742e6164647265737360801b60208201526e0e4dec6d6cae8a8ded6cadca48aa89608b1b60308201526000916001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161053291815260200190565b602060405180830381865afa15801561054f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057391906118e2565b905061058a6001600160a01b038216333089610de0565b60405163095ea7b360e01b81526001600160a01b03821660048201819052602482018890529063095ea7b3906044016020604051808303816000875af11580156105d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fc919061190f565b50604051630852cd8d60e31b8152600481018790526001600160a01b038216906342966c6890602401600060405180830381600087803b15801561063f57600080fd5b505af1158015610653573d6000803e3d6000fd5b5050505060004790507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106b757600080fd5b505af11580156106cb573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b981166004830152602482018690527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216935063095ea7b3925060440190506020604051808303816000875af1158015610760573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610784919061190f565b50604051634360451760e01b81526001600160a01b03898116600483015260248201839052604482018890528681166064830152600160848301526000917f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b99091169063436045179060a401610160604051808303816000875af1158015610810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108349190611962565b60c0810151604051632142170760e11b815230600482015233602482015260448101919091529091507f0000000000000000000000003b090839c26fe3b2bdfa2f4cd7f3ab001ccdf73f6001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156108ab57600080fd5b505af11580156108bf573d6000803e3d6000fd5b509296505050505050505b949350505050565b60008a6001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610912573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093691906118e2565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b0316146109b95760405162461bcd60e51b815260206004820152601160248201527f4e4f4e205745544820535452415445475900000000000000000000000000000060448201526064016104a8565b6001546040516f636f6e74726163742e6164647265737360801b60208201526e0e4dec6d6cae8a8ded6cadca48aa89608b1b60308201526000916001600160a01b0316906321f8a72190603f01604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610a3a91815260200190565b602060405180830381865afa158015610a57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7b91906118e2565b9050610a926001600160a01b03821633308e610de0565b60405163095ea7b360e01b81526001600160a01b03821660048201819052602482018d90529063095ea7b3906044016020604051808303816000875af1158015610ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b04919061190f565b50604051630852cd8d60e31b8152600481018c90526001600160a01b038216906342966c6890602401600060405180830381600087803b158015610b4757600080fd5b505af1158015610b5b573d6000803e3d6000fd5b5050505060004790507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610bbf57600080fd5b505af1158015610bd3573d6000803e3d6000fd5b5050505050610bea8d828d8d8d8d8d8d8d8d610e18565b50505050505050505050505050565b610c01610c89565b6001600160a01b038116610c7d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104a8565b610c8681610d78565b50565b6000546001600160a01b031633146103525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a8565b6040516001600160a01b038316602482015260448101829052610d7390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526110ca565b505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261033a9085906323b872dd60e01b90608401610d0f565b60008a6001600160a01b03166345ed7f336040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7c91906118e2565b60405163095ea7b360e01b81526001600160a01b037f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b981166004830152602482018d90529192509082169063095ea7b3906044016020604051808303816000875af1158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f13919061190f565b50604051634360451760e01b81526001600160a01b038c81166004830152602482018c9052604482018b9052306064830152600160848301526000917f00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b99091169063436045179060a401610160604051808303816000875af1158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611962565b60e0810151909150610fd3898b611a06565b146110205760405162461bcd60e51b815260206004820152601f60248201527f5357415020414e442f4f52204255524e20414d4f554e5420494e56414c49440060448201526064016104a8565b6110308c8a8a8a8a8a8a8a6111af565b60c0810151604051632142170760e11b815230600482015233602482015260448101919091527f0000000000000000000000003b090839c26fe3b2bdfa2f4cd7f3ab001ccdf73f6001600160a01b0316906342842e0e90606401600060405180830381600087803b1580156110a457600080fd5b505af11580156110b8573d6000803e3d6000fd5b50505050505050505050505050505050565b600061111f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114cf9092919063ffffffff16565b805190915015610d73578080602001905181019061113d919061190f565b610d735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104a8565b6000886001600160a01b031663272d28ca6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121391906118e2565b90506000881180156112255750600086115b1561131a5760405163095ea7b360e01b81526001600160a01b038a81166004830152602482018a905282169063095ea7b3906044016020604051808303816000875af1158015611279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129d919061190f565b50604051632ca6634360e11b815260048101899052602481018790526001600160a01b0383811660448301528a169063594cc686906064016020604051808303816000875af11580156112f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611318919061188f565b505b86156114c45760405163095ea7b360e01b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45811660048301526024820189905282169063095ea7b3906044016020604051808303816000875af115801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b3919061190f565b507f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b031663b858183f6000604051806080016040528088888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506001600160a01b038716602082015260408082018d905260609091018a9052517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815261147f9190600401611a6f565b60206040518083038185885af115801561149d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114c2919061188f565b505b505050505050505050565b60606108ca848460008585600080866001600160a01b031685876040516114f69190611abe565b60006040518083038185875af1925050503d8060008114611533576040519150601f19603f3d011682016040523d82523d6000602084013e611538565b606091505b509150915061154987838387611554565b979650505050505050565b606083156115c35782516000036115bc576001600160a01b0385163b6115bc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a8565b50816108ca565b6108ca83838151156115d85781518083602001fd5b8060405162461bcd60e51b81526004016104a89190611ada565b6001600160a01b0381168114610c8657600080fd5b8035611612816115f2565b919050565b60008060006040848603121561162c57600080fd5b833567ffffffffffffffff8082111561164457600080fd5b818601915086601f83011261165857600080fd5b81358181111561166757600080fd5b8760208260051b850101111561167c57600080fd5b60209283019550935050840135611692816115f2565b809150509250925092565b600080600080608085870312156116b357600080fd5b84356116be816115f2565b9350602085013592506040850135915060608501356116dc816115f2565b939692955090935050565b81516001600160a01b031681526101608101602083015161171360208401826001600160a01b03169052565b5060408301516040830152606083015160608301526080830151608083015260a083015161174560a084018215159052565b5060c083015160c083015260e083015160e083015261010080840151818401525061012080840151818401525061014080840151818401525092915050565b6000806000806000806000806000806101208b8d0312156117a457600080fd5b8a356117af816115f2565b995060208b0135985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b013567ffffffffffffffff808211156117f657600080fd5b818d0191508d601f83011261180a57600080fd5b81358181111561181957600080fd5b8e602082850101111561182b57600080fd5b6020830195508094505050506118446101008c01611607565b90509295989b9194979a5092959850565b60006020828403121561186757600080fd5b8135611872816115f2565b9392505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156118a157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016118d0576118d06118a8565b5060010190565b8051611612816115f2565b6000602082840312156118f457600080fd5b8151611872816115f2565b8051801515811461161257600080fd5b60006020828403121561192157600080fd5b611872826118ff565b604051610160810167ffffffffffffffff8111828210171561195c57634e487b7160e01b600052604160045260246000fd5b60405290565b6000610160828403121561197557600080fd5b61197d61192a565b611986836118d7565b8152611994602084016118d7565b60208201526040830151604082015260608301516060820152608083015160808201526119c360a084016118ff565b60a082015260c0838101519082015260e0808401519082015261010080840151908201526101208084015190820152610140928301519281019290925250919050565b80820180821115611a1957611a196118a8565b92915050565b60005b83811015611a3a578181015183820152602001611a22565b50506000910152565b60008151808452611a5b816020860160208601611a1f565b601f01601f19169290920160200192915050565b602081526000825160806020840152611a8b60a0840182611a43565b90506001600160a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b60008251611ad0818460208701611a1f565b9190910192915050565b6020815260006118726020830184611a4356fea164736f6c6343000811000a

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

00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b900000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

-----Decoded View---------------
Arg [0] : _flashProtocolAddress (address): 0x78b2d65dd1d3d9Fb2972d7Ef467261Ca101EC2B9
Arg [1] : _routerContractAddress (address): 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
Arg [2] : _nativeWrappedTokenAddress (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : _rocketStorageAddress (address): 0x1d8f8f00cfa6758d7bE78336684788Fb0ee0Fa46

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000078b2d65dd1d3d9fb2972d7ef467261ca101ec2b9
Arg [1] : 00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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