ETH Price: $3,289.71 (-1.51%)

Contract

0xd4E96eF8eee8678dBFf4d535E033Ed1a4F7605b7
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer214632712024-12-23 6:02:3510 mins ago1734933755IN
Rocket Pool Smoothing Pool
0.01856709 ETH0.000081043.84934774
Transfer214632632024-12-23 6:00:5911 mins ago1734933659IN
Rocket Pool Smoothing Pool
0.01171398 ETH0.00008193.88993184
Transfer214632412024-12-23 5:56:3516 mins ago1734933395IN
Rocket Pool Smoothing Pool
0.03678752 ETH0.000092994.41691639
Transfer214632032024-12-23 5:48:5923 mins ago1734932939IN
Rocket Pool Smoothing Pool
0.03359305 ETH0.000082073.89804504
Transfer214631932024-12-23 5:46:5925 mins ago1734932819IN
Rocket Pool Smoothing Pool
0.01051393 ETH0.000083613.97123769
Transfer214631302024-12-23 5:34:2338 mins ago1734932063IN
Rocket Pool Smoothing Pool
0.01378197 ETH0.000086074.08798184
Transfer214629812024-12-23 5:04:111 hr ago1734930251IN
Rocket Pool Smoothing Pool
0.02352474 ETH0.000094374.48251801
Transfer214629722024-12-23 5:02:231 hr ago1734930143IN
Rocket Pool Smoothing Pool
0.02437855 ETH0.000096914.6030158
Transfer214629362024-12-23 4:55:111 hr ago1734929711IN
Rocket Pool Smoothing Pool
0.07458558 ETH0.000100974.79554597
Transfer214628932024-12-23 4:46:351 hr ago1734929195IN
Rocket Pool Smoothing Pool
0.02553528 ETH0.000091884.36382263
Transfer214627232024-12-23 4:12:232 hrs ago1734927143IN
Rocket Pool Smoothing Pool
0.0246575 ETH0.000100024.75044006
Transfer214625672024-12-23 3:41:112 hrs ago1734925271IN
Rocket Pool Smoothing Pool
0.03834441 ETH0.000110625.25401464
Transfer214624162024-12-23 3:10:233 hrs ago1734923423IN
Rocket Pool Smoothing Pool
0.12896373 ETH0.000113955.41227533
Transfer214623162024-12-23 2:50:113 hrs ago1734922211IN
Rocket Pool Smoothing Pool
0.05529921 ETH0.000088664.21091592
Transfer214621222024-12-23 2:11:114 hrs ago1734919871IN
Rocket Pool Smoothing Pool
0.16943419 ETH0.000089244.2387557
Transfer214621172024-12-23 2:10:114 hrs ago1734919811IN
Rocket Pool Smoothing Pool
0.06218823 ETH0.000086044.08687152
Transfer214620412024-12-23 1:54:594 hrs ago1734918899IN
Rocket Pool Smoothing Pool
0.0189839 ETH0.000085284.05055368
Transfer214620332024-12-23 1:53:234 hrs ago1734918803IN
Rocket Pool Smoothing Pool
0.09097429 ETH0.000086524.10944026
Transfer214618552024-12-23 1:17:234 hrs ago1734916643IN
Rocket Pool Smoothing Pool
0.151595 ETH0.000103834.93155666
Transfer214615052024-12-23 0:06:476 hrs ago1734912407IN
Rocket Pool Smoothing Pool
0.02909751 ETH0.000096694.59229222
Transfer214614682024-12-22 23:59:236 hrs ago1734911963IN
Rocket Pool Smoothing Pool
0.01905553 ETH0.00008434.00406769
Transfer214611322024-12-22 22:51:357 hrs ago1734907895IN
Rocket Pool Smoothing Pool
0.02888724 ETH0.00011185.31013854
Transfer214610272024-12-22 22:30:237 hrs ago1734906623IN
Rocket Pool Smoothing Pool
0.06135109 ETH0.00012896.12232898
Transfer214609492024-12-22 22:14:237 hrs ago1734905663IN
Rocket Pool Smoothing Pool
0.02603148 ETH0.000146996.98132039
Transfer214609432024-12-22 22:13:117 hrs ago1734905591IN
Rocket Pool Smoothing Pool
0.04771019 ETH0.000140326.6646402
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
214488052024-12-21 5:30:352 days ago1734759035
Rocket Pool Smoothing Pool
0.01628018 ETH
214352152024-12-19 7:56:113 days ago1734594971
Rocket Pool Smoothing Pool
69.24509939 ETH
214352152024-12-19 7:56:113 days ago1734594971
Rocket Pool Smoothing Pool
93.87076078 ETH
214229502024-12-17 14:47:475 days ago1734446867
Rocket Pool Smoothing Pool
0.10335945 ETH
213596962024-12-08 18:54:3514 days ago1733684075
Rocket Pool Smoothing Pool
0.04487068 ETH
213217192024-12-03 11:36:2319 days ago1733225783
Rocket Pool Smoothing Pool
0.00045445 ETH
213217192024-12-03 11:36:2319 days ago1733225783
Rocket Pool Smoothing Pool
0.00746658 ETH
213192622024-12-03 3:22:2320 days ago1733196143
Rocket Pool Smoothing Pool
0.00018748 ETH
213130972024-12-02 6:40:2320 days ago1733121623
Rocket Pool Smoothing Pool
0.36089355 ETH
213025152024-11-30 19:15:1122 days ago1732994111
Rocket Pool Smoothing Pool
0.0019838 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.0005177 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.00107235 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.01081404 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.01384157 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.01520646 ETH
212754002024-11-27 0:06:2326 days ago1732665983
Rocket Pool Smoothing Pool
0.02551802 ETH
212518562024-11-23 17:12:4729 days ago1732381967
Rocket Pool Smoothing Pool
0.00006713 ETH
212518562024-11-23 17:12:4729 days ago1732381967
Rocket Pool Smoothing Pool
0.00860779 ETH
212518562024-11-23 17:12:4729 days ago1732381967
Rocket Pool Smoothing Pool
0.01464656 ETH
212447512024-11-22 17:26:2330 days ago1732296383
Rocket Pool Smoothing Pool
0.03121391 ETH
212342742024-11-21 6:19:4731 days ago1732169987
Rocket Pool Smoothing Pool
0.0001 ETH
212341492024-11-21 5:54:4732 days ago1732168487
Rocket Pool Smoothing Pool
71.98861116 ETH
212341492024-11-21 5:54:4732 days ago1732168487
Rocket Pool Smoothing Pool
114.01498874 ETH
212164092024-11-18 18:30:5934 days ago1731954659
Rocket Pool Smoothing Pool
0.01723864 ETH
212139202024-11-18 10:11:2334 days ago1731924683
Rocket Pool Smoothing Pool
0.00022284 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RocketSmoothingPool

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 5 : RocketSmoothingPool.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |  DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0  |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned,
  *  decentralised, trustless and compatible with staking in Ethereum 2.0.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;
pragma abicoder v2;

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

import "../RocketBase.sol";
import "../../interface/rewards/RocketSmoothingPoolInterface.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

/*
Receives priority fees and MEV via fee_recipient

NOTE: This contract intentionally does not use RocketVault to store ETH because there is no way to account for ETH being
added to this contract via fee_recipient. This also means if this contract is upgraded, the ETH must be manually
transferred from this contract to the upgraded one.
*/

contract RocketSmoothingPool is RocketBase, RocketSmoothingPoolInterface {

    // Libs
    using SafeMath for uint256;

    // Events
    event EtherWithdrawn(string indexed by, address indexed to, uint256 amount, uint256 time);

    // Construct
    constructor(RocketStorageInterface _rocketStorageAddress) RocketBase(_rocketStorageAddress) {
        // Version
        version = 1;
    }

    // Allow receiving ETH
    receive() payable external {}

    // Withdraws ETH to given address
    // Only accepts calls from Rocket Pool network contracts
    function withdrawEther(address _to, uint256 _amount) override external onlyLatestNetworkContract {
        // Valid amount?
        require(_amount > 0, "No valid amount of ETH given to withdraw");
        // Get contract name
        string memory contractName = getContractName(msg.sender);
        // Send the ETH
        (bool result,) = _to.call{value: _amount}("");
        require(result, "Failed to withdraw ETH");
        // Emit ether withdrawn event
        emit EtherWithdrawn(contractName, _to, _amount, block.timestamp);
    }
}

File 2 of 5 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 3 of 5 : RocketBase.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |  DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0  |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned,
  *  decentralised, trustless and compatible with staking in Ethereum 2.0.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

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

import "../interface/RocketStorageInterface.sol";

/// @title Base settings / modifiers for each contract in Rocket Pool
/// @author David Rugendyke

abstract contract RocketBase {

    // Calculate using this as the base
    uint256 constant calcBase = 1 ether;

    // Version of the contract
    uint8 public version;

    // The main storage contract where primary persistant storage is maintained
    RocketStorageInterface rocketStorage = RocketStorageInterface(0);


    /*** Modifiers **********************************************************/

    /**
    * @dev Throws if called by any sender that doesn't match a Rocket Pool network contract
    */
    modifier onlyLatestNetworkContract() {
        require(getBool(keccak256(abi.encodePacked("contract.exists", msg.sender))), "Invalid or outdated network contract");
        _;
    }

    /**
    * @dev Throws if called by any sender that doesn't match one of the supplied contract or is the latest version of that contract
    */
    modifier onlyLatestContract(string memory _contractName, address _contractAddress) {
        require(_contractAddress == getAddress(keccak256(abi.encodePacked("contract.address", _contractName))), "Invalid or outdated contract");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a registered node
    */
    modifier onlyRegisteredNode(address _nodeAddress) {
        require(getBool(keccak256(abi.encodePacked("node.exists", _nodeAddress))), "Invalid node");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a trusted node DAO member
    */
    modifier onlyTrustedNode(address _nodeAddress) {
        require(getBool(keccak256(abi.encodePacked("dao.trustednodes.", "member", _nodeAddress))), "Invalid trusted node");
        _;
    }

    /**
    * @dev Throws if called by any sender that isn't a registered minipool
    */
    modifier onlyRegisteredMinipool(address _minipoolAddress) {
        require(getBool(keccak256(abi.encodePacked("minipool.exists", _minipoolAddress))), "Invalid minipool");
        _;
    }
    

    /**
    * @dev Throws if called by any account other than a guardian account (temporary account allowed access to settings before DAO is fully enabled)
    */
    modifier onlyGuardian() {
        require(msg.sender == rocketStorage.getGuardian(), "Account is not a temporary guardian");
        _;
    }




    /*** Methods **********************************************************/

    /// @dev Set the main Rocket Storage address
    constructor(RocketStorageInterface _rocketStorageAddress) {
        // Update the contract address
        rocketStorage = RocketStorageInterface(_rocketStorageAddress);
    }


    /// @dev Get the address of a network contract by name
    function getContractAddress(string memory _contractName) internal view returns (address) {
        // Get the current contract address
        address contractAddress = getAddress(keccak256(abi.encodePacked("contract.address", _contractName)));
        // Check it
        require(contractAddress != address(0x0), "Contract not found");
        // Return
        return contractAddress;
    }


    /// @dev Get the address of a network contract by name (returns address(0x0) instead of reverting if contract does not exist)
    function getContractAddressUnsafe(string memory _contractName) internal view returns (address) {
        // Get the current contract address
        address contractAddress = getAddress(keccak256(abi.encodePacked("contract.address", _contractName)));
        // Return
        return contractAddress;
    }


    /// @dev Get the name of a network contract by address
    function getContractName(address _contractAddress) internal view returns (string memory) {
        // Get the contract name
        string memory contractName = getString(keccak256(abi.encodePacked("contract.name", _contractAddress)));
        // Check it
        require(bytes(contractName).length > 0, "Contract not found");
        // Return
        return contractName;
    }

    /// @dev Get revert error message from a .call method
    function getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return "Transaction reverted silently";
        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }



    /*** Rocket Storage Methods ****************************************/

    // Note: Unused helpers have been removed to keep contract sizes down

    /// @dev Storage get methods
    function getAddress(bytes32 _key) internal view returns (address) { return rocketStorage.getAddress(_key); }
    function getUint(bytes32 _key) internal view returns (uint) { return rocketStorage.getUint(_key); }
    function getString(bytes32 _key) internal view returns (string memory) { return rocketStorage.getString(_key); }
    function getBytes(bytes32 _key) internal view returns (bytes memory) { return rocketStorage.getBytes(_key); }
    function getBool(bytes32 _key) internal view returns (bool) { return rocketStorage.getBool(_key); }
    function getInt(bytes32 _key) internal view returns (int) { return rocketStorage.getInt(_key); }
    function getBytes32(bytes32 _key) internal view returns (bytes32) { return rocketStorage.getBytes32(_key); }

    /// @dev Storage set methods
    function setAddress(bytes32 _key, address _value) internal { rocketStorage.setAddress(_key, _value); }
    function setUint(bytes32 _key, uint _value) internal { rocketStorage.setUint(_key, _value); }
    function setString(bytes32 _key, string memory _value) internal { rocketStorage.setString(_key, _value); }
    function setBytes(bytes32 _key, bytes memory _value) internal { rocketStorage.setBytes(_key, _value); }
    function setBool(bytes32 _key, bool _value) internal { rocketStorage.setBool(_key, _value); }
    function setInt(bytes32 _key, int _value) internal { rocketStorage.setInt(_key, _value); }
    function setBytes32(bytes32 _key, bytes32 _value) internal { rocketStorage.setBytes32(_key, _value); }

    /// @dev Storage delete methods
    function deleteAddress(bytes32 _key) internal { rocketStorage.deleteAddress(_key); }
    function deleteUint(bytes32 _key) internal { rocketStorage.deleteUint(_key); }
    function deleteString(bytes32 _key) internal { rocketStorage.deleteString(_key); }
    function deleteBytes(bytes32 _key) internal { rocketStorage.deleteBytes(_key); }
    function deleteBool(bytes32 _key) internal { rocketStorage.deleteBool(_key); }
    function deleteInt(bytes32 _key) internal { rocketStorage.deleteInt(_key); }
    function deleteBytes32(bytes32 _key) internal { rocketStorage.deleteBytes32(_key); }

    /// @dev Storage arithmetic methods
    function addUint(bytes32 _key, uint256 _amount) internal { rocketStorage.addUint(_key, _amount); }
    function subUint(bytes32 _key, uint256 _amount) internal { rocketStorage.subUint(_key, _amount); }
}

File 4 of 5 : RocketStorageInterface.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |  DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0  |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned,
  *  decentralised, trustless and compatible with staking in Ethereum 2.0.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;

// 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 5 of 5 : RocketSmoothingPoolInterface.sol
/**
  *       .
  *      / \
  *     |.'.|
  *     |'.'|
  *   ,'|   |`.
  *  |,-'-|-'-.|
  *   __|_| |         _        _      _____           _
  *  | ___ \|        | |      | |    | ___ \         | |
  *  | |_/ /|__   ___| | _____| |_   | |_/ /__   ___ | |
  *  |    // _ \ / __| |/ / _ \ __|  |  __/ _ \ / _ \| |
  *  | |\ \ (_) | (__|   <  __/ |_   | | | (_) | (_) | |
  *  \_| \_\___/ \___|_|\_\___|\__|  \_|  \___/ \___/|_|
  * +---------------------------------------------------+
  * |  DECENTRALISED STAKING PROTOCOL FOR ETHEREUM 2.0  |
  * +---------------------------------------------------+
  *
  *  Rocket Pool is a first-of-its-kind ETH2 Proof of Stake protocol, designed to be community owned,
  *  decentralised, trustless and compatible with staking in Ethereum 2.0.
  *
  *  For more information about Rocket Pool, visit https://rocketpool.net
  *
  *  Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty
  *
  */

pragma solidity 0.7.6;
pragma abicoder v2;

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

interface RocketSmoothingPoolInterface {
    function withdrawEther(address _to, uint256 _amount) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract RocketStorageInterface","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"by","type":"string"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"EtherWithdrawn","type":"event"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260008054610100600160a81b031916905534801561002157600080fd5b506040516107eb3803806107eb83398101604081905261004091610072565b6000805460ff196001600160a01b0390931661010002610100600160a81b0319909116179190911660011790556100a0565b600060208284031215610083578081fd5b81516001600160a01b0381168114610099578182fd5b9392505050565b61073c806100af6000396000f3fe60806040526004361061002d5760003560e01c8063522f68151461003957806354fd4d501461005b57610034565b3661003457005b600080fd5b34801561004557600080fd5b506100596100543660046105b3565b610086565b005b34801561006757600080fd5b50610070610291565b60405161007d91906106d4565b60405180910390f35b604080517f636f6e74726163742e65786973747300000000000000000000000000000000006020808301919091523360601b602f83015282516023818403018152604390920190925280519101206100dd9061029a565b610132576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806106e36024913960400191505060405180910390fd5b60008111610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610669565b60405180910390fd5b600061018033610340565b905060008373ffffffffffffffffffffffffffffffffffffffff16836040516101a89061062f565b60006040518083038185875af1925050503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5050905080610225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610632565b8373ffffffffffffffffffffffffffffffffffffffff168260405161024a91906105f6565b60405180910390207fff381a086696de98df05e634263390296dd1d097ef34a1be9a91daead07fb01d85426040516102839291906106c6565b60405180910390a350505050565b60005460ff1681565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561030e57600080fd5b505afa158015610322573d6000803e3d6000fd5b505050506040513d602081101561033857600080fd5b505192915050565b606060006103b48360405160200180807f636f6e74726163742e6e616d6500000000000000000000000000000000000000815250600d018273ffffffffffffffffffffffffffffffffffffffff1660601b81526014019150506040516020818303038152906040528051906020012061042c565b9050600081511161042657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b92915050565b60008054604080517f986e791a00000000000000000000000000000000000000000000000000000000815260048101859052905160609361010090930473ffffffffffffffffffffffffffffffffffffffff169263986e791a9260248082019391829003018186803b1580156104a157600080fd5b505afa1580156104b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156104fc57600080fd5b810190808051604051939291908464010000000082111561051c57600080fd5b90830190602082018581111561053157600080fd5b825164010000000081118282018810171561054b57600080fd5b82525081516020918201929091019080838360005b83811015610578578181015183820152602001610560565b50505050905090810190601f1680156105a55780820380516001836020036101000a031916815260200191505b506040525050509050919050565b600080604083850312156105c5578182fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146105e8578283fd5b946020939093013593505050565b60008251815b8181101561061657602081860181015185830152016105fc565b818111156106245782828501525b509190910192915050565b90565b60208082526016908201527f4661696c656420746f2077697468647261772045544800000000000000000000604082015260600190565b60208082526028908201527f4e6f2076616c696420616d6f756e74206f662045544820676976656e20746f2060408201527f7769746864726177000000000000000000000000000000000000000000000000606082015260800190565b918252602082015260400190565b60ff9190911681526020019056fe496e76616c6964206f72206f75746461746564206e6574776f726b20636f6e7472616374a264697066735822122042d7480293b151159bef5143e969a6df8ef949cd4e6b63a3e076a36233cf144864736f6c634300070600330000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

Deployed Bytecode

0x60806040526004361061002d5760003560e01c8063522f68151461003957806354fd4d501461005b57610034565b3661003457005b600080fd5b34801561004557600080fd5b506100596100543660046105b3565b610086565b005b34801561006757600080fd5b50610070610291565b60405161007d91906106d4565b60405180910390f35b604080517f636f6e74726163742e65786973747300000000000000000000000000000000006020808301919091523360601b602f83015282516023818403018152604390920190925280519101206100dd9061029a565b610132576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806106e36024913960400191505060405180910390fd5b60008111610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610669565b60405180910390fd5b600061018033610340565b905060008373ffffffffffffffffffffffffffffffffffffffff16836040516101a89061062f565b60006040518083038185875af1925050503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5050905080610225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610632565b8373ffffffffffffffffffffffffffffffffffffffff168260405161024a91906105f6565b60405180910390207fff381a086696de98df05e634263390296dd1d097ef34a1be9a91daead07fb01d85426040516102839291906106c6565b60405180910390a350505050565b60005460ff1681565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561030e57600080fd5b505afa158015610322573d6000803e3d6000fd5b505050506040513d602081101561033857600080fd5b505192915050565b606060006103b48360405160200180807f636f6e74726163742e6e616d6500000000000000000000000000000000000000815250600d018273ffffffffffffffffffffffffffffffffffffffff1660601b81526014019150506040516020818303038152906040528051906020012061042c565b9050600081511161042657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b92915050565b60008054604080517f986e791a00000000000000000000000000000000000000000000000000000000815260048101859052905160609361010090930473ffffffffffffffffffffffffffffffffffffffff169263986e791a9260248082019391829003018186803b1580156104a157600080fd5b505afa1580156104b5573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405260208110156104fc57600080fd5b810190808051604051939291908464010000000082111561051c57600080fd5b90830190602082018581111561053157600080fd5b825164010000000081118282018810171561054b57600080fd5b82525081516020918201929091019080838360005b83811015610578578181015183820152602001610560565b50505050905090810190601f1680156105a55780820380516001836020036101000a031916815260200191505b506040525050509050919050565b600080604083850312156105c5578182fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146105e8578283fd5b946020939093013593505050565b60008251815b8181101561061657602081860181015185830152016105fc565b818111156106245782828501525b509190910192915050565b90565b60208082526016908201527f4661696c656420746f2077697468647261772045544800000000000000000000604082015260600190565b60208082526028908201527f4e6f2076616c696420616d6f756e74206f662045544820676976656e20746f2060408201527f7769746864726177000000000000000000000000000000000000000000000000606082015260800190565b918252602082015260400190565b60ff9190911681526020019056fe496e76616c6964206f72206f75746461746564206e6574776f726b20636f6e7472616374a264697066735822122042d7480293b151159bef5143e969a6df8ef949cd4e6b63a3e076a36233cf144864736f6c63430007060033

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

0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

-----Decoded View---------------
Arg [0] : _rocketStorageAddress (address): 0x1d8f8f00cfa6758d7bE78336684788Fb0ee0Fa46

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46


 Latest 25 blocks (From a total of 11,122 blocks with 494.34 Ether produced)

Block Transaction Difficulty Gas Used Reward
214632212024-12-23 5:52:3520 mins ago1734933155730.00 TH4,626,377 (15.42%)
0.004638406819169791 ETH
214631802024-12-23 5:44:2328 mins ago17349326631110.00 TH8,730,317 (29.10%)
0.009316486817211338 ETH
214622342024-12-23 2:33:353 hrs ago17349212151010.00 TH20,398,093 (67.99%)
0.006340718947593653 ETH
214617732024-12-23 1:00:595 hrs ago17349156593450.00 TH11,784,781 (39.28%)
0.015692956978569934 ETH
214615092024-12-23 0:07:356 hrs ago17349124551030.00 TH6,387,818 (21.27%)
0.005992484751751473 ETH
214610802024-12-22 22:41:117 hrs ago1734907271740.00 TH3,879,217 (12.93%)
0.014257176553557871 ETH
214606372024-12-22 21:11:359 hrs ago1734901895650.00 TH4,676,582 (15.59%)
0.005140777631140249 ETH
214597572024-12-22 18:14:3511 hrs ago1734891275830.00 TH5,812,186 (19.37%)
0.004144995866136666 ETH
214590342024-12-22 15:48:5914 hrs ago1734882539920.00 TH6,866,954 (22.89%)
0.007079601865495855 ETH
214568832024-12-22 8:35:5921 hrs ago17348565591040.00 TH7,023,223 (23.41%)
0.005375987789687357 ETH
214559672024-12-22 5:32:3524 hrs ago1734845555980.00 TH7,647,607 (25.49%)
0.008049876356806288 ETH
214559562024-12-22 5:30:2324 hrs ago1734845423990.00 TH6,765,536 (22.55%)
0.010451911400046975 ETH
214537762024-12-21 22:11:2332 hrs ago17348190831060.00 TH8,951,155 (29.84%)
0.004270455162197848 ETH
214536572024-12-21 21:47:2332 hrs ago17348176431990.00 TH8,099,218 (27.00%)
0.011982489282200125 ETH
214516122024-12-21 14:54:4739 hrs ago1734792887560.00 TH4,833,078 (16.11%)
0.010427631373574858 ETH
214514292024-12-21 14:17:5939 hrs ago1734790679790.00 TH4,329,724 (14.42%)
0.008933167362546592 ETH
214508712024-12-21 12:25:3541 hrs ago17347839352090.00 TH11,527,376 (38.42%)
0.007654268354771957 ETH
214503262024-12-21 10:36:2343 hrs ago17347773831520.00 TH8,049,654 (26.83%)
0.005589809545840401 ETH
214502162024-12-21 10:14:2343 hrs ago1734776063960.00 TH7,622,618 (25.41%)
0.006350149640907093 ETH
214501132024-12-21 9:53:4744 hrs ago1734774827970.00 TH6,649,221 (22.16%)
0.007684146659438578 ETH
214491492024-12-21 6:39:4747 hrs ago1734763187590.00 TH5,241,253 (17.44%)
0.009559954040081018 ETH
214489322024-12-21 5:56:112 days ago17347605711000.00 TH7,408,620 (24.70%)
0.008218179077454404 ETH
214458992024-12-20 19:44:112 days ago17347238511180.00 TH7,228,718 (24.10%)
0.01436473537325458 ETH
214456112024-12-20 18:46:232 days ago17347203831450.00 TH6,881,631 (22.94%)
0.009077207841997228 ETH
214451842024-12-20 17:20:352 days ago1734715235930.00 TH6,721,879 (22.41%)
0.012562488701933472 ETH
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  ]
[ 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.