Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RocketDAONodeTrustedSettingsMinipool
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 * */ // SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.7.6; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./RocketDAONodeTrustedSettings.sol"; import "../../../../interface/dao/node/settings/RocketDAONodeTrustedSettingsMinipoolInterface.sol"; import "../../../../interface/dao/protocol/settings/RocketDAOProtocolSettingsMinipoolInterface.sol"; /// @notice The Trusted Node DAO Minipool settings contract RocketDAONodeTrustedSettingsMinipool is RocketDAONodeTrustedSettings, RocketDAONodeTrustedSettingsMinipoolInterface { using SafeMath for uint; constructor(RocketStorageInterface _rocketStorageAddress) RocketDAONodeTrustedSettings(_rocketStorageAddress, "minipool") { // Set version version = 2; // If deployed during initial deployment, initialise now (otherwise must be called after upgrade) if (!getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) { // Init settings setSettingUint("minipool.scrub.period", 12 hours); setSettingUint("minipool.promotion.scrub.period", 3 days); setSettingUint("minipool.scrub.quorum", 0.51 ether); setSettingBool("minipool.scrub.penalty.enabled", false); setSettingUint("minipool.bond.reduction.window.start", 2 days); setSettingUint("minipool.bond.reduction.window.length", 2 days); setSettingUint("minipool.cancel.bond.reduction.quorum", 0.51 ether); // Settings initialised setBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")), true); } } /// @notice Update a setting, overrides inherited setting method with extra checks for this contract /// @param _settingPath The path of the setting within this contract's namespace /// @param _value The value to set it to function setSettingUint(string memory _settingPath, uint256 _value) override public onlyDAONodeTrustedProposal { // Some safety guards for certain settings if(getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) { if(keccak256(abi.encodePacked(_settingPath)) == keccak256(abi.encodePacked("minipool.scrub.period"))) { RocketDAOProtocolSettingsMinipoolInterface rocketDAOProtocolSettingsMinipool = RocketDAOProtocolSettingsMinipoolInterface(getContractAddress("rocketDAOProtocolSettingsMinipool")); require(_value <= (rocketDAOProtocolSettingsMinipool.getLaunchTimeout().sub(1 hours)), "Scrub period must be less than launch timeout"); } } // Update setting now setUint(keccak256(abi.encodePacked(settingNameSpace, _settingPath)), _value); } // Getters /// @notice How long minipools must wait before moving to staking status (can be scrubbed by ODAO before then) function getScrubPeriod() override external view returns (uint256) { return getSettingUint("minipool.scrub.period"); } /// @notice How long minipools must wait before promoting a vacant minipool to staking status (can be scrubbed by ODAO before then) function getPromotionScrubPeriod() override external view returns (uint256) { return getSettingUint("minipool.promotion.scrub.period"); } /// @notice Returns the required number of trusted nodes to vote to scrub a minipool function getScrubQuorum() override external view returns (uint256) { return getSettingUint("minipool.scrub.quorum"); } /// @notice Returns the required number of trusted nodes to vote to cancel a bond reduction function getCancelBondReductionQuorum() override external view returns (uint256) { return getSettingUint("minipool.cancel.bond.reduction.quorum"); } /// @notice Returns true if scrubbing results in an RPL penalty for the node operator function getScrubPenaltyEnabled() override external view returns (bool) { return getSettingBool("minipool.scrub.penalty.enabled"); } /// @notice Returns true if the given time is within the bond reduction window function isWithinBondReductionWindow(uint256 _time) override external view returns (bool) { uint256 start = getBondReductionWindowStart(); uint256 length = getBondReductionWindowLength(); return (_time >= start && _time < (start.add(length))); } /// @notice Returns the start of the bond reduction window function getBondReductionWindowStart() override public view returns (uint256) { return getSettingUint("minipool.bond.reduction.window.start"); } /// @notice Returns the length of the bond reduction window function getBondReductionWindowLength() override public view returns (uint256) { return getSettingUint("minipool.bond.reduction.window.length"); } }
// 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; } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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); } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 RocketDAONodeTrustedSettingsInterface { function getSettingUint(string memory _settingPath) external view returns (uint256); function setSettingUint(string memory _settingPath, uint256 _value) external; function getSettingBool(string memory _settingPath) external view returns (bool); function setSettingBool(string memory _settingPath, bool _value) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 "../../../RocketBase.sol"; import "../../../../interface/dao/node/settings/RocketDAONodeTrustedSettingsInterface.sol"; // Settings in RP which the DAO will have full control over // This settings contract enables storage using setting paths with namespaces, rather than explicit set methods abstract contract RocketDAONodeTrustedSettings is RocketBase, RocketDAONodeTrustedSettingsInterface { // The namespace for a particular group of settings bytes32 settingNameSpace; // Only allow updating from the DAO proposals contract modifier onlyDAONodeTrustedProposal() { // If this contract has been initialised, only allow access from the proposals contract if(getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) require(getContractAddress("rocketDAONodeTrustedProposals") == msg.sender, "Only DAO Node Trusted Proposals contract can update a setting"); _; } // Construct constructor(RocketStorageInterface _rocketStorageAddress, string memory _settingNameSpace) RocketBase(_rocketStorageAddress) { // Apply the setting namespace settingNameSpace = keccak256(abi.encodePacked("dao.trustednodes.setting.", _settingNameSpace)); } /*** Uints ****************/ // A general method to return any setting given the setting path is correct, only accepts uints function getSettingUint(string memory _settingPath) public view override returns (uint256) { return getUint(keccak256(abi.encodePacked(settingNameSpace, _settingPath))); } // Update a Uint setting, can only be executed by the DAO contract when a majority on a setting proposal has passed and been executed function setSettingUint(string memory _settingPath, uint256 _value) virtual public override onlyDAONodeTrustedProposal { // Update setting now setUint(keccak256(abi.encodePacked(settingNameSpace, _settingPath)), _value); } /*** Bools ****************/ // A general method to return any setting given the setting path is correct, only accepts bools function getSettingBool(string memory _settingPath) public view override returns (bool) { return getBool(keccak256(abi.encodePacked(settingNameSpace, _settingPath))); } // Update a setting, can only be executed by the DAO contract when a majority on a setting proposal has passed and been executed function setSettingBool(string memory _settingPath, bool _value) virtual public override onlyDAONodeTrustedProposal { // Update setting now setBool(keccak256(abi.encodePacked(settingNameSpace, _settingPath)), _value); } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 RocketDAONodeTrustedSettingsMinipoolInterface { function getScrubPeriod() external view returns(uint256); function getPromotionScrubPeriod() external view returns(uint256); function getScrubQuorum() external view returns(uint256); function getCancelBondReductionQuorum() external view returns(uint256); function getScrubPenaltyEnabled() external view returns(bool); function isWithinBondReductionWindow(uint256 _time) external view returns (bool); function getBondReductionWindowStart() external view returns (uint256); function getBondReductionWindowLength() external view returns (uint256); }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 // Represents the type of deposits required by a minipool enum MinipoolDeposit { None, // Marks an invalid deposit type Full, // The minipool requires 32 ETH from the node operator, 16 ETH of which will be refinanced from user deposits Half, // The minipool required 16 ETH from the node operator to be matched with 16 ETH from user deposits Empty, // The minipool requires 0 ETH from the node operator to be matched with 32 ETH from user deposits (trusted nodes only) Variable // Indicates this minipool is of the new generation that supports a variable deposit amount }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | 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 import "../../../../types/MinipoolDeposit.sol"; interface RocketDAOProtocolSettingsMinipoolInterface { function getLaunchBalance() external view returns (uint256); function getPreLaunchValue() external pure returns (uint256); function getDepositUserAmount(MinipoolDeposit _depositType) external view returns (uint256); function getFullDepositUserAmount() external view returns (uint256); function getHalfDepositUserAmount() external view returns (uint256); function getVariableDepositAmount() external view returns (uint256); function getSubmitWithdrawableEnabled() external view returns (bool); function getBondReductionEnabled() external view returns (bool); function getLaunchTimeout() external view returns (uint256); function getMaximumCount() external view returns (uint256); function isWithinUserDistributeWindow(uint256 _time) external view returns (bool); function hasUserDistributeWindowPassed(uint256 _time) external view returns (bool); function getUserDistributeWindowStart() external view returns (uint256); function getUserDistributeWindowLength() external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 15000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract RocketStorageInterface","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getBondReductionWindowLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBondReductionWindowStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCancelBondReductionQuorum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPromotionScrubPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getScrubPenaltyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getScrubPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getScrubQuorum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_settingPath","type":"string"}],"name":"getSettingBool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_settingPath","type":"string"}],"name":"getSettingUint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"isWithinBondReductionWindow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_settingPath","type":"string"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setSettingBool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_settingPath","type":"string"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSettingUint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260008054610100600160a81b03191690553480156200002257600080fd5b5060405162001eca38038062001eca833981810160405260208110156200004857600080fd5b505160408051808201825260088152671b5a5b9a5c1bdbdb60c21b602080830191825260008054610100600160a81b0319166101006001600160a01b0388160217905592517f64616f2e747275737465646e6f6465732e73657474696e672e000000000000009381019384528251859484939092603901918083835b60208310620000e55780518252601f199092019160209182019101620000c4565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f19018352808552825192820192909220600181905560008054600260ff19909116179055828201526719195c1b1bde595960c21b82850152835180830360280181526048909201909352805192019190912062000170955093506200034a92505050565b620003435760408051808201909152601581527f6d696e69706f6f6c2e73637275622e706572696f6400000000000000000000006020820152620001b79061a8c0620003d9565b60408051808201909152601f81527f6d696e69706f6f6c2e70726f6d6f74696f6e2e73637275622e706572696f64006020820152620001fa906203f480620003d9565b60408051808201909152601581527f6d696e69706f6f6c2e73637275622e71756f72756d000000000000000000000060208201526200024290670713e24c43730000620003d9565b60408051808201909152601e81527f6d696e69706f6f6c2e73637275622e70656e616c74792e656e61626c656400006020820152620002839060006200072a565b620002ab60405180606001604052806024815260200162001dd1602491396202a300620003d9565b620002d360405180606001604052806025815260200162001e80602591396202a300620003d9565b6200030060405180606001604052806025815260200162001ea560259139670713e24c43730000620003d9565b60018054604080516020808201939093526719195c1b1bde595960c21b818301528151602881830301815260489091019091528051910120620003439162000885565b5062000afb565b60008060019054906101000a90046001600160a01b03166001600160a01b0316637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620003a557600080fd5b505afa158015620003ba573d6000803e3d6000fd5b505050506040513d6020811015620003d157600080fd5b505192915050565b600154604080516020808201939093526719195c1b1bde595960c21b8183015281516028818303018152604890910190915280519101206200041b906200034a565b15620004a95760408051808201909152601d81527f726f636b657444414f4e6f64655472757374656450726f706f73616c73000000602082015233906200046290620008f7565b6001600160a01b031614620004a95760405162461bcd60e51b815260040180806020018281038252603d81526020018062001df5603d913960400191505060405180910390fd5b600154604080516020808201939093526719195c1b1bde595960c21b818301528151602881830301815260489091019091528051910120620004eb906200034a565b156200069b5760405160200180807f6d696e69706f6f6c2e73637275622e706572696f640000000000000000000000815250601501905060405160208183030381529060405280519060200120826040516020018082805190602001908083835b602083106200056d5780518252601f1990920191602091820191016200054c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012014156200069b576000620005d560405180606001604052806021815260200162001e5f60219139620008f7565b905062000659610e10826001600160a01b031663d42916c26040518163ffffffff1660e01b815260040160206040518083038186803b1580156200061857600080fd5b505afa1580156200062d573d6000803e3d6000fd5b505050506040513d60208110156200064457600080fd5b505190620009ee602090811b62000cc517901c565b821115620006995760405162461bcd60e51b815260040180806020018281038252602d81526020018062001e32602d913960400191505060405180910390fd5b505b62000726600154836040516020018083815260200182805190602001908083835b60208310620006dd5780518252601f199092019160209182019101620006bc565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208262000a4c60201b60201c565b5050565b600154604080516020808201939093526719195c1b1bde595960c21b8183015281516028818303018152604890910190915280519101206200076c906200034a565b15620007fa5760408051808201909152601d81527f726f636b657444414f4e6f64655472757374656450726f706f73616c7300000060208201523390620007b390620008f7565b6001600160a01b031614620007fa5760405162461bcd60e51b815260040180806020018281038252603d81526020018062001df5603d913960400191505060405180910390fd5b62000726600154836040516020018083815260200182805190602001908083835b602083106200083c5780518252601f1990920191602091820191016200081b565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120826200088560201b60201c565b600080546040805163abfdcced60e01b815260048101869052841515602482015290516101009092046001600160a01b03169263abfdcced9260448084019382900301818387803b158015620008da57600080fd5b505af1158015620008ef573d6000803e3d6000fd5b505050505050565b600080620009958360405160200180806f636f6e74726163742e6164647265737360801b81525060100182805190602001908083835b602083106200094e5780518252601f1990920191602091820191016200092d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062000aa060201b60201c565b90506001600160a01b038116620009e8576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081b9bdd08199bdd5b9960721b604482015290519081900360640190fd5b92915050565b60008282111562000a46576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000805460408051637152429d60e11b8152600481018690526024810185905290516101009092046001600160a01b03169263e2a4853a9260448084019382900301818387803b158015620008da57600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b03166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015620003a557600080fd5b6112c68062000b0b6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063754b6a731161008c57806392bbae481161006657806392bbae481461035d578063c4f5025214610365578063c56710ff1461036d578063f0245dc814610413576100df565b8063754b6a73146103305780637f22f46d146103385780638b663dbc14610340576100df565b806354fd4d50116100bd57806354fd4d50146102625780635e9d4044146102805780636e86e7fe14610328576100df565b80631bfcc24e146100e4578063202827651461019e5780632a57d018146101b8575b600080fd5b61018a600480360360208110156100fa57600080fd5b81019060208101813564010000000081111561011557600080fd5b82018360208201111561012757600080fd5b8035906020019184600183028401116401000000008311171561014957600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061041b945050505050565b604080519115158252519081900360200190f35b6101a66104c1565b60408051918252519081900360200190f35b610260600480360360408110156101ce57600080fd5b8101906020810181356401000000008111156101e957600080fd5b8201836020820111156101fb57600080fd5b8035906020019184600183028401116401000000008311171561021d57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505035151590506104e9565b005b61026a6106ab565b6040805160ff9092168252519081900360200190f35b6102606004803603604081101561029657600080fd5b8101906020810181356401000000008111156102b157600080fd5b8201836020820111156102c357600080fd5b803590602001918460018302840111640100000000831117156102e557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106b4915050565b6101a6610aa6565b6101a6610ae6565b6101a6610b26565b61018a6004803603602081101561035657600080fd5b5035610b49565b6101a6610b82565b61018a610ba5565b6101a66004803603602081101561038357600080fd5b81019060208101813564010000000081111561039e57600080fd5b8201836020820111156103b057600080fd5b803590602001918460018302840111640100000000831117156103d257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be5945050505050565b6101a6610c85565b60006104bb600154836040516020018083815260200182805190602001908083835b6020831061047a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161043d565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120610d3c565b92915050565b60006104e460405180606001604052806025815260200161126c60259139610be5565b905090565b61054260015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b15610608573373ffffffffffffffffffffffffffffffffffffffff1661059c6040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c73000000815250610de2565b73ffffffffffffffffffffffffffffffffffffffff1614610608576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806111bc603d913960400191505060405180910390fd5b6106a7600154836040516020018083815260200182805190602001908083835b6020831061066557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610628565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012082610f25565b5050565b60005460ff1681565b61070d60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b156107d3573373ffffffffffffffffffffffffffffffffffffffff166107676040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c73000000815250610de2565b73ffffffffffffffffffffffffffffffffffffffff16146107d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806111bc603d913960400191505060405180910390fd5b61082c60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b15610a075760405160200180807f6d696e69706f6f6c2e73637275622e706572696f640000000000000000000000815250601501905060405160208183030381529060405280519060200120826040516020018082805190602001908083835b602083106108c957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161088c565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001201415610a0757600061092d60405180606001604052806021815260200161122660219139610de2565b90506109ad610e108273ffffffffffffffffffffffffffffffffffffffff1663d42916c26040518163ffffffff1660e01b815260040160206040518083038186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b505190610cc5565b821115610a05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806111f9602d913960400191505060405180910390fd5b505b6106a7600154836040516020018083815260200182805190602001908083835b60208310610a6457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610a27565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012082610fbb565b60006104e46040518060400160405280601581526020017f6d696e69706f6f6c2e73637275622e71756f72756d0000000000000000000000815250610be5565b60006104e46040518060400160405280601f81526020017f6d696e69706f6f6c2e70726f6d6f74696f6e2e73637275622e706572696f6400815250610be5565b60006104e460405180606001604052806024815260200161119860249139610be5565b600080610b54610b26565b90506000610b60610b82565b9050818410158015610b7a5750610b778282611034565b84105b949350505050565b60006104e460405180606001604052806025815260200161124760259139610be5565b60006104e46040518060400160405280601e81526020017f6d696e69706f6f6c2e73637275622e70656e616c74792e656e61626c6564000081525061041b565b60006104bb600154836040516020018083815260200182805190602001908083835b60208310610c4457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610c07565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001206110af565b60006104e46040518060400160405280601581526020017f6d696e69706f6f6c2e73637275622e706572696f640000000000000000000000815250610be5565b600082821115610d3657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d6020811015610dda57600080fd5b505192915050565b600080610ea18360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b60208310610e6157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610e24565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120611123565b905073ffffffffffffffffffffffffffffffffffffffff81166104bb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b158015610f9f57600080fd5b505af1158015610fb3573d6000803e3d6000fd5b505050505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b158015610f9f57600080fd5b6000828201838110156110a857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fd5b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fdfe6d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e73746172744f6e6c792044414f204e6f646520547275737465642050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67536372756220706572696f64206d757374206265206c657373207468616e206c61756e63682074696d656f7574726f636b657444414f50726f746f636f6c53657474696e67734d696e69706f6f6c6d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e6c656e6774686d696e69706f6f6c2e63616e63656c2e626f6e642e726564756374696f6e2e71756f72756da2646970667358221220eb95dc467e91f242971459b297aa91033720938f810b036025692614856d3a8864736f6c634300070600336d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e73746172744f6e6c792044414f204e6f646520547275737465642050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67536372756220706572696f64206d757374206265206c657373207468616e206c61756e63682074696d656f7574726f636b657444414f50726f746f636f6c53657474696e67734d696e69706f6f6c6d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e6c656e6774686d696e69706f6f6c2e63616e63656c2e626f6e642e726564756374696f6e2e71756f72756d0000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100df5760003560e01c8063754b6a731161008c57806392bbae481161006657806392bbae481461035d578063c4f5025214610365578063c56710ff1461036d578063f0245dc814610413576100df565b8063754b6a73146103305780637f22f46d146103385780638b663dbc14610340576100df565b806354fd4d50116100bd57806354fd4d50146102625780635e9d4044146102805780636e86e7fe14610328576100df565b80631bfcc24e146100e4578063202827651461019e5780632a57d018146101b8575b600080fd5b61018a600480360360208110156100fa57600080fd5b81019060208101813564010000000081111561011557600080fd5b82018360208201111561012757600080fd5b8035906020019184600183028401116401000000008311171561014957600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061041b945050505050565b604080519115158252519081900360200190f35b6101a66104c1565b60408051918252519081900360200190f35b610260600480360360408110156101ce57600080fd5b8101906020810181356401000000008111156101e957600080fd5b8201836020820111156101fb57600080fd5b8035906020019184600183028401116401000000008311171561021d57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505035151590506104e9565b005b61026a6106ab565b6040805160ff9092168252519081900360200190f35b6102606004803603604081101561029657600080fd5b8101906020810181356401000000008111156102b157600080fd5b8201836020820111156102c357600080fd5b803590602001918460018302840111640100000000831117156102e557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106b4915050565b6101a6610aa6565b6101a6610ae6565b6101a6610b26565b61018a6004803603602081101561035657600080fd5b5035610b49565b6101a6610b82565b61018a610ba5565b6101a66004803603602081101561038357600080fd5b81019060208101813564010000000081111561039e57600080fd5b8201836020820111156103b057600080fd5b803590602001918460018302840111640100000000831117156103d257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610be5945050505050565b6101a6610c85565b60006104bb600154836040516020018083815260200182805190602001908083835b6020831061047a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161043d565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120610d3c565b92915050565b60006104e460405180606001604052806025815260200161126c60259139610be5565b905090565b61054260015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b15610608573373ffffffffffffffffffffffffffffffffffffffff1661059c6040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c73000000815250610de2565b73ffffffffffffffffffffffffffffffffffffffff1614610608576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806111bc603d913960400191505060405180910390fd5b6106a7600154836040516020018083815260200182805190602001908083835b6020831061066557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610628565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012082610f25565b5050565b60005460ff1681565b61070d60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b156107d3573373ffffffffffffffffffffffffffffffffffffffff166107676040518060400160405280601d81526020017f726f636b657444414f4e6f64655472757374656450726f706f73616c73000000815250610de2565b73ffffffffffffffffffffffffffffffffffffffff16146107d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806111bc603d913960400191505060405180910390fd5b61082c60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120610d3c565b15610a075760405160200180807f6d696e69706f6f6c2e73637275622e706572696f640000000000000000000000815250601501905060405160208183030381529060405280519060200120826040516020018082805190602001908083835b602083106108c957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161088c565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001201415610a0757600061092d60405180606001604052806021815260200161122660219139610de2565b90506109ad610e108273ffffffffffffffffffffffffffffffffffffffff1663d42916c26040518163ffffffff1660e01b815260040160206040518083038186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b505190610cc5565b821115610a05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806111f9602d913960400191505060405180910390fd5b505b6106a7600154836040516020018083815260200182805190602001908083835b60208310610a6457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610a27565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012082610fbb565b60006104e46040518060400160405280601581526020017f6d696e69706f6f6c2e73637275622e71756f72756d0000000000000000000000815250610be5565b60006104e46040518060400160405280601f81526020017f6d696e69706f6f6c2e70726f6d6f74696f6e2e73637275622e706572696f6400815250610be5565b60006104e460405180606001604052806024815260200161119860249139610be5565b600080610b54610b26565b90506000610b60610b82565b9050818410158015610b7a5750610b778282611034565b84105b949350505050565b60006104e460405180606001604052806025815260200161124760259139610be5565b60006104e46040518060400160405280601e81526020017f6d696e69706f6f6c2e73637275622e70656e616c74792e656e61626c6564000081525061041b565b60006104bb600154836040516020018083815260200182805190602001908083835b60208310610c4457805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610c07565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001206110af565b60006104e46040518060400160405280601581526020017f6d696e69706f6f6c2e73637275622e706572696f640000000000000000000000815250610be5565b600082821115610d3657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d6020811015610dda57600080fd5b505192915050565b600080610ea18360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b60208310610e6157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610e24565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120611123565b905073ffffffffffffffffffffffffffffffffffffffff81166104bb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b158015610f9f57600080fd5b505af1158015610fb3573d6000803e3d6000fd5b505050505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b158015610f9f57600080fd5b6000828201838110156110a857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fd5b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610db057600080fdfe6d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e73746172744f6e6c792044414f204e6f646520547275737465642050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67536372756220706572696f64206d757374206265206c657373207468616e206c61756e63682074696d656f7574726f636b657444414f50726f746f636f6c53657474696e67734d696e69706f6f6c6d696e69706f6f6c2e626f6e642e726564756374696f6e2e77696e646f772e6c656e6774686d696e69706f6f6c2e63616e63656c2e626f6e642e726564756374696f6e2e71756f72756da2646970667358221220eb95dc467e91f242971459b297aa91033720938f810b036025692614856d3a8864736f6c63430007060033
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.