ETH Price: $3,895.02 (-0.65%)

Contract

0x07FCaBCbe4ff0d80c2b1eb42855C0131b6cba2F4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Submit Balances201025112024-06-16 6:18:35181 days ago1718518715IN
Rocket Pool: Network Balances
0 ETH0.000318346.21154698
Submit Balances201025082024-06-16 6:17:59181 days ago1718518679IN
Rocket Pool: Network Balances
0 ETH0.000322096.28467373
Submit Balances201024922024-06-16 6:14:47181 days ago1718518487IN
Rocket Pool: Network Balances
0 ETH0.000303845.92856793
Submit Balances201024882024-06-16 6:13:59181 days ago1718518439IN
Rocket Pool: Network Balances
0 ETH0.000292595.70896323
Submit Balances201024862024-06-16 6:13:35181 days ago1718518415IN
Rocket Pool: Network Balances
0 ETH0.000298485.8239995
Submit Balances201024852024-06-16 6:13:23181 days ago1718518403IN
Rocket Pool: Network Balances
0 ETH0.000988295.96640592
Submit Balances201024842024-06-16 6:13:11181 days ago1718518391IN
Rocket Pool: Network Balances
0 ETH0.000809945.7947177
Submit Balances201024842024-06-16 6:13:11181 days ago1718518391IN
Rocket Pool: Network Balances
0 ETH0.000809945.7947177
Submit Balances201024842024-06-16 6:13:11181 days ago1718518391IN
Rocket Pool: Network Balances
0 ETH0.000809945.7947177
Submit Balances201024822024-06-16 6:12:47181 days ago1718518367IN
Rocket Pool: Network Balances
0 ETH0.000822135.88191352
Submit Balances201024772024-06-16 6:11:47181 days ago1718518307IN
Rocket Pool: Network Balances
0 ETH0.000821575.87789125
Submit Balances201024752024-06-16 6:11:23181 days ago1718518283IN
Rocket Pool: Network Balances
0 ETH0.000829515.93475627
Submit Balances201024752024-06-16 6:11:23181 days ago1718518283IN
Rocket Pool: Network Balances
0 ETH0.000829515.93475627
Submit Balances201024732024-06-16 6:10:59181 days ago1718518259IN
Rocket Pool: Network Balances
0 ETH0.000819075.86006735
Submit Balances201024712024-06-16 6:10:35181 days ago1718518235IN
Rocket Pool: Network Balances
0 ETH0.000903245.75780888
Submit Balances200967442024-06-15 10:57:59182 days ago1718449079IN
Rocket Pool: Network Balances
0 ETH0.000348886.80568955
Submit Balances200967402024-06-15 10:57:11182 days ago1718449031IN
Rocket Pool: Network Balances
0 ETH0.000352096.86845542
Submit Balances200967382024-06-15 10:56:47182 days ago1718449007IN
Rocket Pool: Network Balances
0 ETH0.000352236.87108481
Submit Balances200967362024-06-15 10:56:23182 days ago1718448983IN
Rocket Pool: Network Balances
0 ETH0.000348346.79526852
Submit Balances200967352024-06-15 10:56:11182 days ago1718448971IN
Rocket Pool: Network Balances
0 ETH0.000352456.87537362
Submit Balances200967342024-06-15 10:55:59182 days ago1718448959IN
Rocket Pool: Network Balances
0 ETH0.001123536.78238443
Submit Balances200967342024-06-15 10:55:59182 days ago1718448959IN
Rocket Pool: Network Balances
0 ETH0.000948076.78238443
Submit Balances200967342024-06-15 10:55:59182 days ago1718448959IN
Rocket Pool: Network Balances
0 ETH0.000948076.78238443
Submit Balances200967302024-06-15 10:55:11182 days ago1718448911IN
Rocket Pool: Network Balances
0 ETH0.000871826.23688746
Submit Balances200967292024-06-15 10:54:59182 days ago1718448899IN
Rocket Pool: Network Balances
0 ETH0.00092536.61948821
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
213301232024-12-04 15:47:3510 days ago1733327255
0x07FCaBCb...1b6cba2F4
0 ETH
213301232024-12-04 15:47:3510 days ago1733327255
0x07FCaBCb...1b6cba2F4
0 ETH
213301232024-12-04 15:47:3510 days ago1733327255
0x07FCaBCb...1b6cba2F4
0 ETH
213301232024-12-04 15:47:3510 days ago1733327255
0x07FCaBCb...1b6cba2F4
0 ETH
213263792024-12-04 3:13:5911 days ago1733282039
0x07FCaBCb...1b6cba2F4
0 ETH
213263792024-12-04 3:13:5911 days ago1733282039
0x07FCaBCb...1b6cba2F4
0 ETH
213263792024-12-04 3:13:5911 days ago1733282039
0x07FCaBCb...1b6cba2F4
0 ETH
213263792024-12-04 3:13:5911 days ago1733282039
0x07FCaBCb...1b6cba2F4
0 ETH
212832382024-11-28 2:23:3517 days ago1732760615
0x07FCaBCb...1b6cba2F4
0 ETH
212832382024-11-28 2:23:3517 days ago1732760615
0x07FCaBCb...1b6cba2F4
0 ETH
212832382024-11-28 2:23:3517 days ago1732760615
0x07FCaBCb...1b6cba2F4
0 ETH
212832382024-11-28 2:23:3517 days ago1732760615
0x07FCaBCb...1b6cba2F4
0 ETH
212557222024-11-24 6:09:4720 days ago1732428587
0x07FCaBCb...1b6cba2F4
0 ETH
212557222024-11-24 6:09:4720 days ago1732428587
0x07FCaBCb...1b6cba2F4
0 ETH
212557222024-11-24 6:09:4720 days ago1732428587
0x07FCaBCb...1b6cba2F4
0 ETH
212557222024-11-24 6:09:4720 days ago1732428587
0x07FCaBCb...1b6cba2F4
0 ETH
212395642024-11-22 0:03:1123 days ago1732233791
0x07FCaBCb...1b6cba2F4
0 ETH
212395642024-11-22 0:03:1123 days ago1732233791
0x07FCaBCb...1b6cba2F4
0 ETH
212395642024-11-22 0:03:1123 days ago1732233791
0x07FCaBCb...1b6cba2F4
0 ETH
212395642024-11-22 0:03:1123 days ago1732233791
0x07FCaBCb...1b6cba2F4
0 ETH
212394782024-11-21 23:45:4723 days ago1732232747
0x07FCaBCb...1b6cba2F4
0 ETH
212394782024-11-21 23:45:4723 days ago1732232747
0x07FCaBCb...1b6cba2F4
0 ETH
212394782024-11-21 23:45:4723 days ago1732232747
0x07FCaBCb...1b6cba2F4
0 ETH
212394782024-11-21 23:45:4723 days ago1732232747
0x07FCaBCb...1b6cba2F4
0 ETH
212394252024-11-21 23:34:5923 days ago1732232099
0x07FCaBCb...1b6cba2F4
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RocketNetworkBalances

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 7 : RocketNetworkBalances.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 "@openzeppelin/contracts/math/SafeMath.sol";

import "../RocketBase.sol";
import "../../interface/dao/node/RocketDAONodeTrustedInterface.sol";
import "../../interface/network/RocketNetworkBalancesInterface.sol";
import "../../interface/dao/protocol/settings/RocketDAOProtocolSettingsNetworkInterface.sol";

// Network balances

contract RocketNetworkBalances is RocketBase, RocketNetworkBalancesInterface {

    // Libs
    using SafeMath for uint;

    // Events
    event BalancesSubmitted(address indexed from, uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time);
    event BalancesUpdated(uint256 block, uint256 totalEth, uint256 stakingEth, uint256 rethSupply, uint256 time);

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

    // The block number which balances are current for
    function getBalancesBlock() override public view returns (uint256) {
        return getUint(keccak256("network.balances.updated.block"));
    }
    function setBalancesBlock(uint256 _value) private {
        setUint(keccak256("network.balances.updated.block"), _value);
    }

    // The current RP network total ETH balance
    function getTotalETHBalance() override public view returns (uint256) {
        return getUint(keccak256("network.balance.total"));
    }
    function setTotalETHBalance(uint256 _value) private {
        setUint(keccak256("network.balance.total"), _value);
    }

    // The current RP network staking ETH balance
    function getStakingETHBalance() override public view returns (uint256) {
        return getUint(keccak256("network.balance.staking"));
    }
    function setStakingETHBalance(uint256 _value) private {
        setUint(keccak256("network.balance.staking"), _value);
    }

    // The current RP network total rETH supply
    function getTotalRETHSupply() override external view returns (uint256) {
        return getUint(keccak256("network.balance.reth.supply"));
    }
    function setTotalRETHSupply(uint256 _value) private {
        setUint(keccak256("network.balance.reth.supply"), _value);
    }

    // Get the current RP network ETH utilization rate as a fraction of 1 ETH
    // Represents what % of the network's balance is actively earning rewards
    function getETHUtilizationRate() override external view returns (uint256) {
        uint256 totalEthBalance = getTotalETHBalance();
        uint256 stakingEthBalance = getStakingETHBalance();
        if (totalEthBalance == 0) { return calcBase; }
        return calcBase.mul(stakingEthBalance).div(totalEthBalance);
    }

    // Submit network balances for a block
    // Only accepts calls from trusted (oracle) nodes
    function submitBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) override external onlyLatestContract("rocketNetworkBalances", address(this)) onlyTrustedNode(msg.sender) {
        // Check settings
        RocketDAOProtocolSettingsNetworkInterface rocketDAOProtocolSettingsNetwork = RocketDAOProtocolSettingsNetworkInterface(getContractAddress("rocketDAOProtocolSettingsNetwork"));
        require(rocketDAOProtocolSettingsNetwork.getSubmitBalancesEnabled(), "Submitting balances is currently disabled");
        // Check block
        require(_block < block.number, "Balances can not be submitted for a future block");
        require(_block > getBalancesBlock(), "Network balances for an equal or higher block are set");
        // Get submission keys
        bytes32 nodeSubmissionKey = keccak256(abi.encodePacked("network.balances.submitted.node", msg.sender, _block, _totalEth, _stakingEth, _rethSupply));
        bytes32 submissionCountKey = keccak256(abi.encodePacked("network.balances.submitted.count", _block, _totalEth, _stakingEth, _rethSupply));
        // Check & update node submission status
        require(!getBool(nodeSubmissionKey), "Duplicate submission from node");
        setBool(nodeSubmissionKey, true);
        setBool(keccak256(abi.encodePacked("network.balances.submitted.node", msg.sender, _block)), true);
        // Increment submission count
        uint256 submissionCount = getUint(submissionCountKey).add(1);
        setUint(submissionCountKey, submissionCount);
        // Emit balances submitted event
        emit BalancesSubmitted(msg.sender, _block, _totalEth, _stakingEth, _rethSupply, block.timestamp);
        // Check submission count & update network balances
        RocketDAONodeTrustedInterface rocketDAONodeTrusted = RocketDAONodeTrustedInterface(getContractAddress("rocketDAONodeTrusted"));
        if (calcBase.mul(submissionCount).div(rocketDAONodeTrusted.getMemberCount()) >= rocketDAOProtocolSettingsNetwork.getNodeConsensusThreshold()) {
            updateBalances(_block, _totalEth, _stakingEth, _rethSupply);
        }
    }

    // Executes updateBalances if consensus threshold is reached
    function executeUpdateBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) override external onlyLatestContract("rocketNetworkBalances", address(this)) {
        // Check settings
        RocketDAOProtocolSettingsNetworkInterface rocketDAOProtocolSettingsNetwork = RocketDAOProtocolSettingsNetworkInterface(getContractAddress("rocketDAOProtocolSettingsNetwork"));
        require(rocketDAOProtocolSettingsNetwork.getSubmitBalancesEnabled(), "Submitting balances is currently disabled");
        // Check block
        require(_block < block.number, "Balances can not be submitted for a future block");
        require(_block > getBalancesBlock(), "Network balances for an equal or higher block are set");
        // Check balances
        require(_stakingEth <= _totalEth, "Invalid network balances");
        // Get submission keys
        bytes32 submissionCountKey = keccak256(abi.encodePacked("network.balances.submitted.count", _block, _totalEth, _stakingEth, _rethSupply));
        // Get submission count
        uint256 submissionCount = getUint(submissionCountKey);
        // Check submission count & update network balances
        RocketDAONodeTrustedInterface rocketDAONodeTrusted = RocketDAONodeTrustedInterface(getContractAddress("rocketDAONodeTrusted"));
        require(calcBase.mul(submissionCount).div(rocketDAONodeTrusted.getMemberCount()) >= rocketDAOProtocolSettingsNetwork.getNodeConsensusThreshold(), "Consensus has not been reached");
        updateBalances(_block, _totalEth, _stakingEth, _rethSupply);
    }

    // Update network balances
    function updateBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) private {
        // Update balances
        setBalancesBlock(_block);
        setTotalETHBalance(_totalEth);
        setStakingETHBalance(_stakingEth);
        setTotalRETHSupply(_rethSupply);
        // Emit balances updated event
        emit BalancesUpdated(_block, _totalEth, _stakingEth, _rethSupply, block.timestamp);
    }

    // Returns the latest block number that oracles should be reporting balances for
    function getLatestReportableBlock() override external view returns (uint256) {
        // Load contracts
        RocketDAOProtocolSettingsNetworkInterface rocketDAOProtocolSettingsNetwork = RocketDAOProtocolSettingsNetworkInterface(getContractAddress("rocketDAOProtocolSettingsNetwork"));
        // Get the block balances were lasted updated and the update frequency
        uint256 updateFrequency = rocketDAOProtocolSettingsNetwork.getSubmitBalancesFrequency();
        // Calculate the last reportable block based on update frequency
        return block.number.div(updateFrequency).mul(updateFrequency);
    }
}

File 2 of 7 : 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 7 : 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.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 4 of 7 : 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 5 of 7 : RocketDAONodeTrustedInterface.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.5.0 <0.9.0;

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

interface RocketDAONodeTrustedInterface {
    function getBootstrapModeDisabled() external view returns (bool);
    function getMemberQuorumVotesRequired() external view returns (uint256);
    function getMemberAt(uint256 _index) external view returns (address);
    function getMemberCount() external view returns (uint256);
    function getMemberMinRequired() external view returns (uint256);
    function getMemberIsValid(address _nodeAddress) external view returns (bool);
    function getMemberLastProposalTime(address _nodeAddress) external view returns (uint256);
    function getMemberID(address _nodeAddress) external view returns (string memory);
    function getMemberUrl(address _nodeAddress) external view returns (string memory);
    function getMemberJoinedTime(address _nodeAddress) external view returns (uint256);
    function getMemberProposalExecutedTime(string memory _proposalType, address _nodeAddress) external view returns (uint256);
    function getMemberRPLBondAmount(address _nodeAddress) external view returns (uint256);
    function getMemberIsChallenged(address _nodeAddress) external view returns (bool);
    function getMemberUnbondedValidatorCount(address _nodeAddress) external view returns (uint256);
    function incrementMemberUnbondedValidatorCount(address _nodeAddress) external;
    function decrementMemberUnbondedValidatorCount(address _nodeAddress) external;
    function bootstrapMember(string memory _id, string memory _url, address _nodeAddress) external;
    function bootstrapSettingUint(string memory _settingContractName, string memory _settingPath, uint256 _value) external;
    function bootstrapSettingBool(string memory _settingContractName, string memory _settingPath, bool _value) external;
    function bootstrapUpgrade(string memory _type, string memory _name, string memory _contractAbi, address _contractAddress) external;
    function bootstrapDisable(bool _confirmDisableBootstrapMode) external;
    function memberJoinRequired(string memory _id, string memory _url) external;
}

File 6 of 7 : RocketNetworkBalancesInterface.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.5.0 <0.9.0;

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

interface RocketNetworkBalancesInterface {
    function getBalancesBlock() external view returns (uint256);
    function getLatestReportableBlock() external view returns (uint256);
    function getTotalETHBalance() external view returns (uint256);
    function getStakingETHBalance() external view returns (uint256);
    function getTotalRETHSupply() external view returns (uint256);
    function getETHUtilizationRate() external view returns (uint256);
    function submitBalances(uint256 _block, uint256 _total, uint256 _staking, uint256 _rethSupply) external;
    function executeUpdateBalances(uint256 _block, uint256 _totalEth, uint256 _stakingEth, uint256 _rethSupply) external;
}

File 7 of 7 : RocketDAOProtocolSettingsNetworkInterface.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.5.0 <0.9.0;

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

interface RocketDAOProtocolSettingsNetworkInterface {
    function getNodeConsensusThreshold() external view returns (uint256);
    function getNodePenaltyThreshold() external view returns (uint256);
    function getPerPenaltyRate() external view returns (uint256);
    function getSubmitBalancesEnabled() external view returns (bool);
    function getSubmitBalancesFrequency() external view returns (uint256);
    function getSubmitPricesEnabled() external view returns (bool);
    function getSubmitPricesFrequency() external view returns (uint256);
    function getMinimumNodeFee() external view returns (uint256);
    function getTargetNodeFee() external view returns (uint256);
    function getMaximumNodeFee() external view returns (uint256);
    function getNodeFeeDemandRange() external view returns (uint256);
    function getTargetRethCollateralRate() external view returns (uint256);
    function getRethDepositDelay() external view returns (uint256);
    function getSubmitRewardsEnabled() external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 15000
  },
  "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":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakingEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rethSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BalancesSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakingEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rethSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BalancesUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"},{"internalType":"uint256","name":"_totalEth","type":"uint256"},{"internalType":"uint256","name":"_stakingEth","type":"uint256"},{"internalType":"uint256","name":"_rethSupply","type":"uint256"}],"name":"executeUpdateBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalancesBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHUtilizationRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestReportableBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingETHBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalETHBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalRETHSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"},{"internalType":"uint256","name":"_totalEth","type":"uint256"},{"internalType":"uint256","name":"_stakingEth","type":"uint256"},{"internalType":"uint256","name":"_rethSupply","type":"uint256"}],"name":"submitBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

608060405260008054610100600160a81b031916905534801561002157600080fd5b5060405161183a38038061183a8339818101604052602081101561004457600080fd5b50516000805460ff196001600160a01b0390931661010002610100600160a81b0319909116179190911660021790556117b8806100826000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063964d042c11610076578063a9bb16ed1161005b578063a9bb16ed14610150578063c4c8d0ad14610158578063f1eda63414610160576100a3565b8063964d042c146101405780639dba66af14610148576100a3565b806332db5470146100a857806354fd4d50146100d957806356ff3625146100f75780639100c13d14610126575b600080fd5b6100d7600480360360808110156100be57600080fd5b5080359060208101359060408101359060600135610168565b005b6100e161093c565b6040805160ff9092168252519081900360200190f35b6100d76004803603608081101561010d57600080fd5b5080359060208101359060408101359060600135610945565b61012e610ed1565b60408051918252519081900360200190f35b61012e610f02565b61012e610f2d565b61012e610f7a565b61012e611047565b61012e611072565b6040518060400160405280601581526020017f726f636b65744e6574776f726b42616c616e63657300000000000000000000008152503061025b8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012061109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146102f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f64616f2e747275737465646e6f6465732e0000000000000000000000000000006020808301919091527f6d656d6265720000000000000000000000000000000000000000000000000000603183015233606081901b60378401528351602b818503018152604b909301909352815191012061037390611143565b6103de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c69642074727573746564206e6f6465000000000000000000000000604482015290519081900360640190fd5b600061041e6040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b90508073ffffffffffffffffffffffffffffffffffffffff1663fcdb60db6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d602081101561049057600080fd5b50516104e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806116d46029913960400191505060405180910390fd5b43881061053f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806116fd6030913960400191505060405180910390fd5b610547610ed1565b881161059e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061174e6035913960400191505060405180910390fd5b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e6e6f6465006020808301919091523360601b603f830152605382018b9052607382018a90526093820189905260b38083018990528351808403909101815260d3830184528051908201207f6e6574776f726b2e62616c616e6365732e7375626d69747465642e636f756e7460f384015261011383018c905261013383018b905261015383018a90526101738084018a905284518085039091018152610193909301909352815191012061067082611143565b156106dc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4475706c6963617465207375626d697373696f6e2066726f6d206e6f64650000604482015290519081900360640190fd5b6106e78260016112bf565b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e6e6f6465006020808301919091523360601b603f83015260538083018e905283518084039091018152607390920190925280519101206107489060016112bf565b600061075e600161075884611355565b906113c9565b905061076a8282611444565b604080518c8152602081018c90528082018b9052606081018a9052426080820152905133917fe657a6d6957f4fabb37b86d4d6571e82df061bd2d8a3ede5d197b0b98a5a1bdf919081900360a00190a260006107fa6040518060400160405280601481526020017f726f636b657444414f4e6f6465547275737465640000000000000000000000008152506111b7565b90508473ffffffffffffffffffffffffffffffffffffffff16631f66e8ed6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b5051604080517f997072f7000000000000000000000000000000000000000000000000000000008152905161091d9173ffffffffffffffffffffffffffffffffffffffff85169163997072f791600480820192602092909190829003018186803b1580156108d957600080fd5b505afa1580156108ed573d6000803e3d6000fd5b505050506040513d602081101561090357600080fd5b5051610917670de0b6b3a7640000866114bd565b90611530565b1061092e5761092e8c8c8c8c6115b1565b505050505050505050505050565b60005460ff1681565b6040518060400160405280601581526020017f726f636b65744e6574776f726b42616c616e6365730000000000000000000000815250306109f78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6000610ad06040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b90508073ffffffffffffffffffffffffffffffffffffffff1663fcdb60db6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b1857600080fd5b505afa158015610b2c573d6000803e3d6000fd5b505050506040513d6020811015610b4257600080fd5b5051610b99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806116d46029913960400191505060405180910390fd5b438710610bf1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806116fd6030913960400191505060405180910390fd5b610bf9610ed1565b8711610c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061174e6035913960400191505060405180910390fd5b85851115610cbf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964206e6574776f726b2062616c616e6365730000000000000000604482015290519081900360640190fd5b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e636f756e746020808301919091528183018a9052606082018990526080820188905260a08083018890528351808403909101815260c090920190925280519101206000610d2b82611355565b90506000610d6d6040518060400160405280601481526020017f726f636b657444414f4e6f6465547275737465640000000000000000000000008152506111b7565b90508373ffffffffffffffffffffffffffffffffffffffff16631f66e8ed6040518163ffffffff1660e01b815260040160206040518083038186803b158015610db557600080fd5b505afa158015610dc9573d6000803e3d6000fd5b505050506040513d6020811015610ddf57600080fd5b5051604080517f997072f70000000000000000000000000000000000000000000000000000000081529051610e4c9173ffffffffffffffffffffffffffffffffffffffff85169163997072f791600480820192602092909190829003018186803b1580156108d957600080fd5b1015610eb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f436f6e73656e73757320686173206e6f74206265656e20726561636865640000604482015290519081900360640190fd5b610ec58a8a8a8a6115b1565b50505050505050505050565b6000610efc7f8e228cc95820b1264270ce3b51a2a54e17242e0b792a7f57c45f45e402f44c74611355565b90505b90565b6000610efc7f9dc185b46ed0f11d151f055e45fde635375a9680c34e501b43a82eb6c09c0951611355565b600080610f38610f02565b90506000610f44611072565b905081610f5d57670de0b6b3a764000092505050610eff565b610f7382610917670de0b6b3a7640000846114bd565b9250505090565b600080610fbb6040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b905060008173ffffffffffffffffffffffffffffffffffffffff16631d5e50ea6040518163ffffffff1660e01b815260040160206040518083038186803b15801561100557600080fd5b505afa158015611019573d6000803e3d6000fd5b505050506040513d602081101561102f57600080fd5b50519050610f73816110414382611530565b906114bd565b6000610efc7f5b3a7b8bdde2122fad4dc45e51ae0c5cedc887473a999474f2ead5a8faadfe3c611355565b6000610efc7f60ada356ca70f00927cab348673259fa737f98b9c6c4cb8433c182af17149aef611355565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b505afa158015611125573d6000803e3d6000fd5b505050506040513d602081101561113b57600080fd5b505192915050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b6000806112358360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b905073ffffffffffffffffffffffffffffffffffffffff81166112b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b92915050565b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b15801561133957600080fd5b505af115801561134d573d6000803e3d6000fd5b505050505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b60008282018381101561143d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b15801561133957600080fd5b6000826114cc575060006112b9565b828202828482816114d957fe5b041461143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061172d6021913960400191505060405180910390fd5b60008082116115a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816115a957fe5b049392505050565b6115ba84611628565b6115c383611655565b6115cc8261167f565b6115d5816116a9565b60408051858152602081018590528082018490526060810183905242608082015290517f7bbbb137fdad433d6168b1c75c714c72b8abe8d07460f0c0b433063e7bf1f3949181900360a00190a150505050565b6116527f8e228cc95820b1264270ce3b51a2a54e17242e0b792a7f57c45f45e402f44c7482611444565b50565b6116527f9dc185b46ed0f11d151f055e45fde635375a9680c34e501b43a82eb6c09c095182611444565b6116527f60ada356ca70f00927cab348673259fa737f98b9c6c4cb8433c182af17149aef82611444565b6116527f5b3a7b8bdde2122fad4dc45e51ae0c5cedc887473a999474f2ead5a8faadfe3c8261144456fe5375626d697474696e672062616c616e6365732069732063757272656e746c792064697361626c656442616c616e6365732063616e206e6f74206265207375626d697474656420666f7220612066757475726520626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6574776f726b2062616c616e63657320666f7220616e20657175616c206f722068696768657220626c6f636b2061726520736574a2646970667358221220439c60ab2d0b9a3717be41c62f9acf8d658270d7c316f37c8cf29954e310ec3164736f6c634300070600330000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a35760003560e01c8063964d042c11610076578063a9bb16ed1161005b578063a9bb16ed14610150578063c4c8d0ad14610158578063f1eda63414610160576100a3565b8063964d042c146101405780639dba66af14610148576100a3565b806332db5470146100a857806354fd4d50146100d957806356ff3625146100f75780639100c13d14610126575b600080fd5b6100d7600480360360808110156100be57600080fd5b5080359060208101359060408101359060600135610168565b005b6100e161093c565b6040805160ff9092168252519081900360200190f35b6100d76004803603608081101561010d57600080fd5b5080359060208101359060408101359060600135610945565b61012e610ed1565b60408051918252519081900360200190f35b61012e610f02565b61012e610f2d565b61012e610f7a565b61012e611047565b61012e611072565b6040518060400160405280601581526020017f726f636b65744e6574776f726b42616c616e63657300000000000000000000008152503061025b8260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b6020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012061109d565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146102f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b604080517f64616f2e747275737465646e6f6465732e0000000000000000000000000000006020808301919091527f6d656d6265720000000000000000000000000000000000000000000000000000603183015233606081901b60378401528351602b818503018152604b909301909352815191012061037390611143565b6103de57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c69642074727573746564206e6f6465000000000000000000000000604482015290519081900360640190fd5b600061041e6040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b90508073ffffffffffffffffffffffffffffffffffffffff1663fcdb60db6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d602081101561049057600080fd5b50516104e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806116d46029913960400191505060405180910390fd5b43881061053f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806116fd6030913960400191505060405180910390fd5b610547610ed1565b881161059e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061174e6035913960400191505060405180910390fd5b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e6e6f6465006020808301919091523360601b603f830152605382018b9052607382018a90526093820189905260b38083018990528351808403909101815260d3830184528051908201207f6e6574776f726b2e62616c616e6365732e7375626d69747465642e636f756e7460f384015261011383018c905261013383018b905261015383018a90526101738084018a905284518085039091018152610193909301909352815191012061067082611143565b156106dc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4475706c6963617465207375626d697373696f6e2066726f6d206e6f64650000604482015290519081900360640190fd5b6106e78260016112bf565b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e6e6f6465006020808301919091523360601b603f83015260538083018e905283518084039091018152607390920190925280519101206107489060016112bf565b600061075e600161075884611355565b906113c9565b905061076a8282611444565b604080518c8152602081018c90528082018b9052606081018a9052426080820152905133917fe657a6d6957f4fabb37b86d4d6571e82df061bd2d8a3ede5d197b0b98a5a1bdf919081900360a00190a260006107fa6040518060400160405280601481526020017f726f636b657444414f4e6f6465547275737465640000000000000000000000008152506111b7565b90508473ffffffffffffffffffffffffffffffffffffffff16631f66e8ed6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d602081101561086c57600080fd5b5051604080517f997072f7000000000000000000000000000000000000000000000000000000008152905161091d9173ffffffffffffffffffffffffffffffffffffffff85169163997072f791600480820192602092909190829003018186803b1580156108d957600080fd5b505afa1580156108ed573d6000803e3d6000fd5b505050506040513d602081101561090357600080fd5b5051610917670de0b6b3a7640000866114bd565b90611530565b1061092e5761092e8c8c8c8c6115b1565b505050505050505050505050565b60005460ff1681565b6040518060400160405280601581526020017f726f636b65744e6574776f726b42616c616e6365730000000000000000000000815250306109f78260405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c6964206f72206f7574646174656420636f6e747261637400000000604482015290519081900360640190fd5b6000610ad06040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b90508073ffffffffffffffffffffffffffffffffffffffff1663fcdb60db6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b1857600080fd5b505afa158015610b2c573d6000803e3d6000fd5b505050506040513d6020811015610b4257600080fd5b5051610b99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806116d46029913960400191505060405180910390fd5b438710610bf1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806116fd6030913960400191505060405180910390fd5b610bf9610ed1565b8711610c50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061174e6035913960400191505060405180910390fd5b85851115610cbf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964206e6574776f726b2062616c616e6365730000000000000000604482015290519081900360640190fd5b604080517f6e6574776f726b2e62616c616e6365732e7375626d69747465642e636f756e746020808301919091528183018a9052606082018990526080820188905260a08083018890528351808403909101815260c090920190925280519101206000610d2b82611355565b90506000610d6d6040518060400160405280601481526020017f726f636b657444414f4e6f6465547275737465640000000000000000000000008152506111b7565b90508373ffffffffffffffffffffffffffffffffffffffff16631f66e8ed6040518163ffffffff1660e01b815260040160206040518083038186803b158015610db557600080fd5b505afa158015610dc9573d6000803e3d6000fd5b505050506040513d6020811015610ddf57600080fd5b5051604080517f997072f70000000000000000000000000000000000000000000000000000000081529051610e4c9173ffffffffffffffffffffffffffffffffffffffff85169163997072f791600480820192602092909190829003018186803b1580156108d957600080fd5b1015610eb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f436f6e73656e73757320686173206e6f74206265656e20726561636865640000604482015290519081900360640190fd5b610ec58a8a8a8a6115b1565b50505050505050505050565b6000610efc7f8e228cc95820b1264270ce3b51a2a54e17242e0b792a7f57c45f45e402f44c74611355565b90505b90565b6000610efc7f9dc185b46ed0f11d151f055e45fde635375a9680c34e501b43a82eb6c09c0951611355565b600080610f38610f02565b90506000610f44611072565b905081610f5d57670de0b6b3a764000092505050610eff565b610f7382610917670de0b6b3a7640000846114bd565b9250505090565b600080610fbb6040518060400160405280602081526020017f726f636b657444414f50726f746f636f6c53657474696e67734e6574776f726b8152506111b7565b905060008173ffffffffffffffffffffffffffffffffffffffff16631d5e50ea6040518163ffffffff1660e01b815260040160206040518083038186803b15801561100557600080fd5b505afa158015611019573d6000803e3d6000fd5b505050506040513d602081101561102f57600080fd5b50519050610f73816110414382611530565b906114bd565b6000610efc7f5b3a7b8bdde2122fad4dc45e51ae0c5cedc887473a999474f2ead5a8faadfe3c611355565b6000610efc7f60ada356ca70f00927cab348673259fa737f98b9c6c4cb8433c182af17149aef611355565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b505afa158015611125573d6000803e3d6000fd5b505050506040513d602081101561113b57600080fd5b505192915050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b6000806112358360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083836020831061021b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101de565b905073ffffffffffffffffffffffffffffffffffffffff81166112b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b92915050565b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b15801561133957600080fd5b505af115801561134d573d6000803e3d6000fd5b505050505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561111157600080fd5b60008282018381101561143d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b15801561133957600080fd5b6000826114cc575060006112b9565b828202828482816114d957fe5b041461143d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061172d6021913960400191505060405180910390fd5b60008082116115a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816115a957fe5b049392505050565b6115ba84611628565b6115c383611655565b6115cc8261167f565b6115d5816116a9565b60408051858152602081018590528082018490526060810183905242608082015290517f7bbbb137fdad433d6168b1c75c714c72b8abe8d07460f0c0b433063e7bf1f3949181900360a00190a150505050565b6116527f8e228cc95820b1264270ce3b51a2a54e17242e0b792a7f57c45f45e402f44c7482611444565b50565b6116527f9dc185b46ed0f11d151f055e45fde635375a9680c34e501b43a82eb6c09c095182611444565b6116527f60ada356ca70f00927cab348673259fa737f98b9c6c4cb8433c182af17149aef82611444565b6116527f5b3a7b8bdde2122fad4dc45e51ae0c5cedc887473a999474f2ead5a8faadfe3c8261144456fe5375626d697474696e672062616c616e6365732069732063757272656e746c792064697361626c656442616c616e6365732063616e206e6f74206265207375626d697474656420666f7220612066757475726520626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774e6574776f726b2062616c616e63657320666f7220616e20657175616c206f722068696768657220626c6f636b2061726520736574a2646970667358221220439c60ab2d0b9a3717be41c62f9acf8d658270d7c316f37c8cf29954e310ec3164736f6c63430007060033

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


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  ]

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.