Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 13325293 | 1014 days ago | IN | Create: RocketDAOProtocolSettingsRewards | 0 ETH | 0.14247704 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RocketDAOProtocolSettingsRewards
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * 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 "./RocketDAOProtocolSettings.sol"; import "../../../../interface/dao/protocol/settings/RocketDAOProtocolSettingsRewardsInterface.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; // Settings in RP which the DAO will have full control over contract RocketDAOProtocolSettingsRewards is RocketDAOProtocolSettings, RocketDAOProtocolSettingsRewardsInterface { using SafeMath for uint; // Construct constructor(RocketStorageInterface _rocketStorageAddress) RocketDAOProtocolSettings(_rocketStorageAddress, "rewards") { // Set version version = 1; // Set some initial settings on first deployment if(!getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) { // Each of the initial RPL reward claiming contracts setSettingRewardsClaimer('rocketClaimDAO', 0.1 ether); // DAO Rewards claim % amount - Percentage given of 1 ether setSettingRewardsClaimer('rocketClaimNode', 0.70 ether); // Bonded Node Rewards claim % amount - Percentage given of 1 ether setSettingRewardsClaimer('rocketClaimTrustedNode', 0.2 ether); // Trusted Node Rewards claim % amount - Percentage given of 1 ether // RPL Claims settings setSettingUint("rpl.rewards.claim.period.time", 28 days); // The time in which a claim period will span in seconds - 28 days by default // Deployment check setBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")), true); // Flag that this contract has been deployed, so default settings don't get reapplied on a contract upgrade } } /*** Settings ****************/ // Set a new claimer for the rpl rewards, must specify a unique contract name that will be claiming from and a percentage of the rewards function setSettingRewardsClaimer(string memory _contractName, uint256 _perc) override public onlyDAOProtocolProposal { // Get the total perc set, can't be more than 100 uint256 percTotal = getRewardsClaimersPercTotal(); // If this group already exists, it will update the perc uint256 percTotalUpdate = percTotal.add(_perc).sub(getRewardsClaimerPerc(_contractName)); // Can't be more than a total claim amount of 100% require(percTotalUpdate <= 1 ether, "Claimers cannot total more than 100%"); // Update the total setUint(keccak256(abi.encodePacked(settingNameSpace,"rewards.claims", "group.totalPerc")), percTotalUpdate); // Update/Add the claimer amount setUint(keccak256(abi.encodePacked(settingNameSpace, "rewards.claims", "group.amount", _contractName)), _perc); // Set the time it was updated at setUint(keccak256(abi.encodePacked(settingNameSpace, "rewards.claims", "group.amount.updated.time", _contractName)), block.timestamp); } /*** RPL Claims ***********************************************/ // RPL Rewards Claimers (own namespace to prevent DAO setting voting to overwrite them) // Get the perc amount that this rewards contract get claim function getRewardsClaimerPerc(string memory _contractName) override public view returns (uint256) { return getUint(keccak256(abi.encodePacked(settingNameSpace, "rewards.claims", "group.amount", _contractName))); } // Get the time of when the claim perc was last updated function getRewardsClaimerPercTimeUpdated(string memory _contractName) override external view returns (uint256) { return getUint(keccak256(abi.encodePacked(settingNameSpace, "rewards.claims", "group.amount.updated.time", _contractName))); } // Get the perc amount total for all claimers (remaining goes to DAO) function getRewardsClaimersPercTotal() override public view returns (uint256) { return getUint(keccak256(abi.encodePacked(settingNameSpace, "rewards.claims", "group.totalPerc"))); } // RPL Rewards General Settings // The period over which claims can be made function getRewardsClaimIntervalTime() override external view returns (uint256) { return getSettingUint("rpl.rewards.claim.period.time"); } }
// 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 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * 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 | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * 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/protocol/settings/RocketDAOProtocolSettingsInterface.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 RocketDAOProtocolSettings is RocketBase, RocketDAOProtocolSettingsInterface { // The namespace for a particular group of settings bytes32 settingNameSpace; // Only allow updating from the DAO proposals contract modifier onlyDAOProtocolProposal() { // If this contract has been initialised, only allow access from the proposals contract if(getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) require(getContractAddress("rocketDAOProtocolProposals") == msg.sender, "Only DAO Protocol Proposals contract can update a setting"); _; } // Construct constructor(RocketStorageInterface _rocketStorageAddress, string memory _settingNameSpace) RocketBase(_rocketStorageAddress) { // Apply the setting namespace settingNameSpace = keccak256(abi.encodePacked("dao.protocol.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 onlyDAOProtocolProposal { // 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 onlyDAOProtocolProposal { // Update setting now setBool(keccak256(abi.encodePacked(settingNameSpace, _settingPath)), _value); } /*** Addresses ****************/ // A general method to return any setting given the setting path is correct, only accepts addresses function getSettingAddress(string memory _settingPath) external view override returns (address) { return getAddress(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 setSettingAddress(string memory _settingPath, address _value) virtual external override onlyDAOProtocolProposal { // Update setting now setAddress(keccak256(abi.encodePacked(settingNameSpace, _settingPath)), _value); } }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * For more information about Rocket Pool, visit https://rocketpool.net * * Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty * */ pragma solidity 0.7.6; // SPDX-License-Identifier: GPL-3.0-only interface RocketStorageInterface { // Deploy status function getDeployedStatus() external view returns (bool); // Guardian function getGuardian() external view returns(address); function setGuardian(address _newAddress) external; function confirmGuardian() external; // Getters function getAddress(bytes32 _key) external view returns (address); function getUint(bytes32 _key) external view returns (uint); function getString(bytes32 _key) external view returns (string memory); function getBytes(bytes32 _key) external view returns (bytes memory); function getBool(bytes32 _key) external view returns (bool); function getInt(bytes32 _key) external view returns (int); function getBytes32(bytes32 _key) external view returns (bytes32); // Setters function setAddress(bytes32 _key, address _value) external; function setUint(bytes32 _key, uint _value) external; function setString(bytes32 _key, string calldata _value) external; function setBytes(bytes32 _key, bytes calldata _value) external; function setBool(bytes32 _key, bool _value) external; function setInt(bytes32 _key, int _value) external; function setBytes32(bytes32 _key, bytes32 _value) external; // Deleters function deleteAddress(bytes32 _key) external; function deleteUint(bytes32 _key) external; function deleteString(bytes32 _key) external; function deleteBytes(bytes32 _key) external; function deleteBool(bytes32 _key) external; function deleteInt(bytes32 _key) external; function deleteBytes32(bytes32 _key) external; // Arithmetic function addUint(bytes32 _key, uint256 _amount) external; function subUint(bytes32 _key, uint256 _amount) external; // Protected storage function getNodeWithdrawalAddress(address _nodeAddress) external view returns (address); function getNodePendingWithdrawalAddress(address _nodeAddress) external view returns (address); function setWithdrawalAddress(address _nodeAddress, address _newWithdrawalAddress, bool _confirm) external; function confirmWithdrawalAddress(address _nodeAddress) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * For more information about Rocket Pool, visit https://rocketpool.net * * Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty * */ pragma solidity 0.7.6; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAOProtocolSettingsInterface { 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; function getSettingAddress(string memory _settingPath) external view returns (address); function setSettingAddress(string memory _settingPath, address _value) external; }
/** * . * / \ * |.'.| * |'.'| * ,'| |`. * |,-'-|-'-.| * __|_| | _ _ _____ _ * | ___ \| | | | | | ___ \ | | * | |_/ /|__ ___| | _____| |_ | |_/ /__ ___ | | * | // _ \ / __| |/ / _ \ __| | __/ _ \ / _ \| | * | |\ \ (_) | (__| < __/ |_ | | | (_) | (_) | | * \_| \_\___/ \___|_|\_\___|\__| \_| \___/ \___/|_| * +---------------------------------------------------+ * | DECENTRALISED STAKING PROTOCOL FOR ETHEREUM | * +---------------------------------------------------+ * * Rocket Pool is a first-of-its-kind Ethereum staking pool protocol, designed to * be community-owned, decentralised, and trustless. * * For more information about Rocket Pool, visit https://rocketpool.net * * Authors: David Rugendyke, Jake Pospischil, Kane Wallmann, Darren Langley, Joe Clapis, Nick Doherty * */ pragma solidity 0.7.6; // SPDX-License-Identifier: GPL-3.0-only interface RocketDAOProtocolSettingsRewardsInterface { function setSettingRewardsClaimer(string memory _contractName, uint256 _perc) external; function getRewardsClaimerPerc(string memory _contractName) external view returns (uint256); function getRewardsClaimerPercTimeUpdated(string memory _contractName) external view returns (uint256); function getRewardsClaimersPercTotal() external view returns (uint256); function getRewardsClaimIntervalTime() external view returns (uint256); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 15000 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract RocketStorageInterface","name":"_rocketStorageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getRewardsClaimIntervalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"getRewardsClaimerPerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"getRewardsClaimerPercTimeUpdated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsClaimersPercTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_settingPath","type":"string"}],"name":"getSettingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"string","name":"_settingPath","type":"string"},{"internalType":"address","name":"_value","type":"address"}],"name":"setSettingAddress","outputs":[],"stateMutability":"nonpayable","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":"_contractName","type":"string"},{"internalType":"uint256","name":"_perc","type":"uint256"}],"name":"setSettingRewardsClaimer","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
608060405260008054610100600160a81b03191690553480156200002257600080fd5b50604051620025fd380380620025fd833981810160405260208110156200004857600080fd5b505160408051808201825260078152667265776172647360c81b602080830191825260008054610100600160a81b0319166101006001600160a01b0388160217905592517f64616f2e70726f746f636f6c2e73657474696e672e00000000000000000000009381019384528251859484939092603501918083835b60208310620000e45780518252601f199092019160209182019101620000c3565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f1901835280855282519282019290922060018181556000805460ff19169091179055828201526719195c1b1bde595960c21b8285015283518083036028018152604890920190935280519201919091206200016d95509350620002ba92505050565b620002b35760408051808201909152600e81526d726f636b6574436c61696d44414f60901b6020820152620001ab9067016345785d8a000062000349565b60408051808201909152600f81526e726f636b6574436c61696d4e6f646560881b6020820152620001e5906709b6e64a8ec6000062000349565b60408051808201909152601681527f726f636b6574436c61696d547275737465644e6f64650000000000000000000060208201526200022d906702c68af0bb14000062000349565b60408051808201909152601d81527f72706c2e726577617264732e636c61696d2e706572696f642e74696d65000000602082015262000270906224ea006200069f565b60018054604080516020808201939093526719195c1b1bde595960c21b818301528151602881830301815260489091019091528051910120620002b391620007fe565b5062000c55565b60008060019054906101000a90046001600160a01b03166001600160a01b0316637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156200031557600080fd5b505afa1580156200032a573d6000803e3d6000fd5b505050506040513d60208110156200034157600080fd5b505192915050565b600154604080516020808201939093526719195c1b1bde595960c21b8183015281516028818303018152604890910190915280519101206200038b90620002ba565b15620004195760408051808201909152601a81527f726f636b657444414f50726f746f636f6c50726f706f73616c7300000000000060208201523390620003d29062000870565b6001600160a01b031614620004195760405162461bcd60e51b8152600401808060200182810382526039815260200180620025a06039913960400191505060405180910390fd5b60006200042562000967565b90506000620004666200043885620009cf565b62000452858562000a8b60201b620013781790919060201c565b62000aed60201b620013f31790919060201c565b9050670de0b6b3a7640000811115620004b15760405162461bcd60e51b8152600401808060200182810382526024815260200180620025d96024913960400191505060405180910390fd5b600154604080516020808201939093526d726577617264732e636c61696d7360901b818301526e67726f75702e746f74616c5065726360881b604e8201528151603d818303018152605d909101909152805191012062000512908262000b4b565b620005cd6001548560405160200180838152602001806d726577617264732e636c61696d7360901b815250600e01806b19dc9bdd5c0b985b5bdd5b9d60a21b815250600c0182805190602001908083835b60208310620005845780518252601f19909201916020918201910162000563565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208462000b4b60201b60201c565b620006996001548560405160200180838152602001806d726577617264732e636c61696d7360901b815250600e01807f67726f75702e616d6f756e742e757064617465642e74696d650000000000000081525060190182805190602001908083835b60208310620006505780518252601f1990920191602091820191016200062f565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001204262000b4b60201b60201c565b50505050565b600154604080516020808201939093526719195c1b1bde595960c21b818301528151602881830301815260489091019091528051910120620006e190620002ba565b156200076f5760408051808201909152601a81527f726f636b657444414f50726f746f636f6c50726f706f73616c7300000000000060208201523390620007289062000870565b6001600160a01b0316146200076f5760405162461bcd60e51b8152600401808060200182810382526039815260200180620025a06039913960400191505060405180910390fd5b620007fa600154836040516020018083815260200182805190602001908083835b60208310620007b15780518252601f19909201916020918201910162000790565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208262000b4b60201b60201c565b5050565b600080546040805163abfdcced60e01b815260048101869052841515602482015290516101009092046001600160a01b03169263abfdcced9260448084019382900301818387803b1580156200085357600080fd5b505af115801562000868573d6000803e3d6000fd5b505050505050565b6000806200090e8360405160200180806f636f6e74726163742e6164647265737360801b81525060100182805190602001908083835b60208310620008c75780518252601f199092019160209182019101620008a6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012062000b9f60201b60201c565b90506001600160a01b03811662000961576040805162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081b9bdd08199bdd5b9960721b604482015290519081900360640190fd5b92915050565b600154604080516020808201939093526d726577617264732e636c61696d7360901b818301526e67726f75702e746f74616c5065726360881b604e8201528151603d818303018152605d9091019091528051910120600090620009ca9062000bfa565b905090565b6000620009616001548360405160200180838152602001806d726577617264732e636c61696d7360901b815250600e01806b19dc9bdd5c0b985b5bdd5b9d60a21b815250600c0182805190602001908083835b6020831062000a435780518252601f19909201916020918201910162000a22565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012062000bfa60201b60201c565b60008282018381101562000ae6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008282111562000b45576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000805460408051637152429d60e11b8152600481018690526024810185905290516101009092046001600160a01b03169263e2a4853a9260448084019382900301818387803b1580156200085357600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b03166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156200031557600080fd5b60008060019054906101000a90046001600160a01b03166001600160a01b031663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156200031557600080fd5b61193b8062000c656000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806394e5d51211610081578063d4f4697e1161005b578063d4f4697e14610542578063d6cd921e146105e8578063e029e57d146106a6576100d4565b806394e5d512146103ec578063bbaf0e76146103f4578063c56710ff1461049c576100d4565b80632a57d018116100b25780632a57d0181461027c57806354fd4d50146103265780635e9d404414610344576100d4565b80631386a244146100d95780631bfcc24e146101a85780632623005414610262575b600080fd5b61017f600480360360208110156100ef57600080fd5b81019060208101813564010000000081111561010a57600080fd5b82018360208201111561011c57600080fd5b8035906020019184600183028401116401000000008311171561013e57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061074c945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61024e600480360360208110156101be57600080fd5b8101906020810181356401000000008111156101d957600080fd5b8201836020820111156101eb57600080fd5b8035906020019184600183028401116401000000008311171561020d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107d4945050505050565b604080519115158252519081900360200190f35b61026a610856565b60408051918252519081900360200190f35b6103246004803603604081101561029257600080fd5b8101906020810181356401000000008111156102ad57600080fd5b8201836020820111156102bf57600080fd5b803590602001918460018302840111640100000000831117156102e157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505035151590506108d9565b005b61032e610a7d565b6040805160ff9092168252519081900360200190f35b6103246004803603604081101561035a57600080fd5b81019060208101813564010000000081111561037557600080fd5b82018360208201111561038757600080fd5b803590602001918460018302840111640100000000831117156103a957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610a86915050565b61026a610c26565b6103246004803603604081101561040a57600080fd5b81019060208101813564010000000081111561042557600080fd5b82018360208201111561043757600080fd5b8035906020019184600183028401116401000000008311171561045957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c66915050565b61026a600480360360208110156104b257600080fd5b8101906020810181356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611036945050505050565b61026a6004803603602081101561055857600080fd5b81019060208101813564010000000081111561057357600080fd5b82018360208201111561058557600080fd5b803590602001918460018302840111640100000000831117156105a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110b8945050505050565b610324600480360360408110156105fe57600080fd5b81019060208101813564010000000081111561061957600080fd5b82018360208201111561062b57600080fd5b8035906020019184600183028401116401000000008311171561064d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903573ffffffffffffffffffffffffffffffffffffffff1691506111489050565b61026a600480360360208110156106bc57600080fd5b8101906020810181356401000000008111156106d757600080fd5b8201836020820111156106e957600080fd5b8035906020019184600183028401116401000000008311171561070b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506112e8945050505050565b60006107ce600154836040516020018083815260200182805190602001908083835b6020831061078d5780518252601f19909201916020918201910161076e565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012061146a565b92915050565b60006107ce600154836040516020018083815260200182805190602001908083835b602083106108155780518252601f1990920191602091820191016107f6565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120611510565b600154604080516020808201939093527f726577617264732e636c61696d73000000000000000000000000000000000000818301527f67726f75702e746f74616c506572630000000000000000000000000000000000604e8201528151603d818303018152605d90910190915280519101206000906108d490611584565b905090565b61093260015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b156109f8573373ffffffffffffffffffffffffffffffffffffffff1661098c6040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff16146109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b60208310610a375780518252601f199092019160209182019101610a18565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208261171d565b5050565b60005460ff1681565b610adf60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15610ba5573373ffffffffffffffffffffffffffffffffffffffff16610b396040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614610ba5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b60208310610be45780518252601f199092019160209182019101610bc5565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120826117b3565b60006108d46040518060400160405280601d81526020017f72706c2e726577617264732e636c61696d2e706572696f642e74696d65000000815250611036565b610cbf60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15610d85573373ffffffffffffffffffffffffffffffffffffffff16610d196040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614610d85576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b6000610d8f610856565b90506000610daf610d9f856110b8565b610da98486611378565b906113f3565b9050670de0b6b3a7640000811115610e12576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806118e26024913960400191505060405180910390fd5b600154604080516020808201939093527f726577617264732e636c61696d73000000000000000000000000000000000000818301527f67726f75702e746f74616c506572630000000000000000000000000000000000604e8201528151603d818303018152605d9091019091528051910120610e8e90826117b3565b610f5f6001548560405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e740000000000000000000000000000000000000000815250600c0182805190602001908083835b60208310610f1d5780518252601f199092019160209182019101610efe565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120846117b3565b6110306001548560405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e742e757064617465642e74696d650000000000000081525060190182805190602001908083835b60208310610fee5780518252601f199092019160209182019101610fcf565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120426117b3565b50505050565b60006107ce600154836040516020018083815260200182805190602001908083835b602083106110775780518252601f199092019160209182019101611058565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120611584565b60006107ce6001548360405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e740000000000000000000000000000000000000000815250600c018280519060200190808383602083106110775780518252601f199092019160209182019101611058565b6111a160015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15611267573373ffffffffffffffffffffffffffffffffffffffff166111fb6040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614611267576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b602083106112a65780518252601f199092019160209182019101611287565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208261182c565b60006107ce6001548360405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e742e757064617465642e74696d65000000000000008152506019018280519060200190808383602083106110775780518252601f199092019160209182019101611058565b6000828201838110156113ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008282111561146457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b505afa1580156114f2573d6000803e3d6000fd5b505050506040513d602081101561150857600080fd5b505192915050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b6000806116998360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b602083106116595780518252601f19909201916020918201910161163a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012061146a565b905073ffffffffffffffffffffffffffffffffffffffff81166107ce57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b15801561179757600080fd5b505af11580156117ab573d6000803e3d6000fd5b505050505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b15801561179757600080fd5b60008054604080517fca446dd90000000000000000000000000000000000000000000000000000000081526004810186905273ffffffffffffffffffffffffffffffffffffffff858116602483015291516101009093049091169263ca446dd99260448084019382900301818387803b15801561179757600080fdfe4f6e6c792044414f2050726f746f636f6c2050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67436c61696d6572732063616e6e6f7420746f74616c206d6f7265207468616e2031303025a264697066735822122062cfe9dca156833a61ab433a511e7ef782833d4cd20106f4659d1e727d0860cd64736f6c634300070600334f6e6c792044414f2050726f746f636f6c2050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67436c61696d6572732063616e6e6f7420746f74616c206d6f7265207468616e20313030250000000000000000000000001d8f8f00cfa6758d7be78336684788fb0ee0fa46
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100d45760003560e01c806394e5d51211610081578063d4f4697e1161005b578063d4f4697e14610542578063d6cd921e146105e8578063e029e57d146106a6576100d4565b806394e5d512146103ec578063bbaf0e76146103f4578063c56710ff1461049c576100d4565b80632a57d018116100b25780632a57d0181461027c57806354fd4d50146103265780635e9d404414610344576100d4565b80631386a244146100d95780631bfcc24e146101a85780632623005414610262575b600080fd5b61017f600480360360208110156100ef57600080fd5b81019060208101813564010000000081111561010a57600080fd5b82018360208201111561011c57600080fd5b8035906020019184600183028401116401000000008311171561013e57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061074c945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61024e600480360360208110156101be57600080fd5b8101906020810181356401000000008111156101d957600080fd5b8201836020820111156101eb57600080fd5b8035906020019184600183028401116401000000008311171561020d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107d4945050505050565b604080519115158252519081900360200190f35b61026a610856565b60408051918252519081900360200190f35b6103246004803603604081101561029257600080fd5b8101906020810181356401000000008111156102ad57600080fd5b8201836020820111156102bf57600080fd5b803590602001918460018302840111640100000000831117156102e157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050505035151590506108d9565b005b61032e610a7d565b6040805160ff9092168252519081900360200190f35b6103246004803603604081101561035a57600080fd5b81019060208101813564010000000081111561037557600080fd5b82018360208201111561038757600080fd5b803590602001918460018302840111640100000000831117156103a957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610a86915050565b61026a610c26565b6103246004803603604081101561040a57600080fd5b81019060208101813564010000000081111561042557600080fd5b82018360208201111561043757600080fd5b8035906020019184600183028401116401000000008311171561045957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610c66915050565b61026a600480360360208110156104b257600080fd5b8101906020810181356401000000008111156104cd57600080fd5b8201836020820111156104df57600080fd5b8035906020019184600183028401116401000000008311171561050157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611036945050505050565b61026a6004803603602081101561055857600080fd5b81019060208101813564010000000081111561057357600080fd5b82018360208201111561058557600080fd5b803590602001918460018302840111640100000000831117156105a757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110b8945050505050565b610324600480360360408110156105fe57600080fd5b81019060208101813564010000000081111561061957600080fd5b82018360208201111561062b57600080fd5b8035906020019184600183028401116401000000008311171561064d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903573ffffffffffffffffffffffffffffffffffffffff1691506111489050565b61026a600480360360208110156106bc57600080fd5b8101906020810181356401000000008111156106d757600080fd5b8201836020820111156106e957600080fd5b8035906020019184600183028401116401000000008311171561070b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506112e8945050505050565b60006107ce600154836040516020018083815260200182805190602001908083835b6020831061078d5780518252601f19909201916020918201910161076e565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012061146a565b92915050565b60006107ce600154836040516020018083815260200182805190602001908083835b602083106108155780518252601f1990920191602091820191016107f6565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120611510565b600154604080516020808201939093527f726577617264732e636c61696d73000000000000000000000000000000000000818301527f67726f75702e746f74616c506572630000000000000000000000000000000000604e8201528151603d818303018152605d90910190915280519101206000906108d490611584565b905090565b61093260015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b156109f8573373ffffffffffffffffffffffffffffffffffffffff1661098c6040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff16146109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b60208310610a375780518252601f199092019160209182019101610a18565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208261171d565b5050565b60005460ff1681565b610adf60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15610ba5573373ffffffffffffffffffffffffffffffffffffffff16610b396040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614610ba5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b60208310610be45780518252601f199092019160209182019101610bc5565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120826117b3565b60006108d46040518060400160405280601d81526020017f72706c2e726577617264732e636c61696d2e706572696f642e74696d65000000815250611036565b610cbf60015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15610d85573373ffffffffffffffffffffffffffffffffffffffff16610d196040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614610d85576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b6000610d8f610856565b90506000610daf610d9f856110b8565b610da98486611378565b906113f3565b9050670de0b6b3a7640000811115610e12576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806118e26024913960400191505060405180910390fd5b600154604080516020808201939093527f726577617264732e636c61696d73000000000000000000000000000000000000818301527f67726f75702e746f74616c506572630000000000000000000000000000000000604e8201528151603d818303018152605d9091019091528051910120610e8e90826117b3565b610f5f6001548560405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e740000000000000000000000000000000000000000815250600c0182805190602001908083835b60208310610f1d5780518252601f199092019160209182019101610efe565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120846117b3565b6110306001548560405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e742e757064617465642e74696d650000000000000081525060190182805190602001908083835b60208310610fee5780518252601f199092019160209182019101610fcf565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120426117b3565b50505050565b60006107ce600154836040516020018083815260200182805190602001908083835b602083106110775780518252601f199092019160209182019101611058565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405280519060200120611584565b60006107ce6001548360405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e740000000000000000000000000000000000000000815250600c018280519060200190808383602083106110775780518252601f199092019160209182019101611058565b6111a160015460405160200180828152602001807f6465706c6f79656400000000000000000000000000000000000000000000000081525060080191505060405160208183030381529060405280519060200120611510565b15611267573373ffffffffffffffffffffffffffffffffffffffff166111fb6040518060400160405280601a81526020017f726f636b657444414f50726f746f636f6c50726f706f73616c730000000000008152506115f8565b73ffffffffffffffffffffffffffffffffffffffff1614611267576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806118a96039913960400191505060405180910390fd5b610a79600154836040516020018083815260200182805190602001908083835b602083106112a65780518252601f199092019160209182019101611287565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208261182c565b60006107ce6001548360405160200180838152602001807f726577617264732e636c61696d73000000000000000000000000000000000000815250600e01807f67726f75702e616d6f756e742e757064617465642e74696d65000000000000008152506019018280519060200190808383602083106110775780518252601f199092019160209182019101611058565b6000828201838110156113ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008282111561146457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a721836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b505afa1580156114f2573d6000803e3d6000fd5b505050506040513d602081101561150857600080fd5b505192915050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ae1cfca836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd02d0f5836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156114de57600080fd5b6000806116998360405160200180807f636f6e74726163742e616464726573730000000000000000000000000000000081525060100182805190602001908083835b602083106116595780518252601f19909201916020918201910161163a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012061146a565b905073ffffffffffffffffffffffffffffffffffffffff81166107ce57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436f6e7472616374206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b60008054604080517fabfdcced000000000000000000000000000000000000000000000000000000008152600481018690528415156024820152905161010090920473ffffffffffffffffffffffffffffffffffffffff169263abfdcced9260448084019382900301818387803b15801561179757600080fd5b505af11580156117ab573d6000803e3d6000fd5b505050505050565b60008054604080517fe2a4853a0000000000000000000000000000000000000000000000000000000081526004810186905260248101859052905161010090920473ffffffffffffffffffffffffffffffffffffffff169263e2a4853a9260448084019382900301818387803b15801561179757600080fd5b60008054604080517fca446dd90000000000000000000000000000000000000000000000000000000081526004810186905273ffffffffffffffffffffffffffffffffffffffff858116602483015291516101009093049091169263ca446dd99260448084019382900301818387803b15801561179757600080fdfe4f6e6c792044414f2050726f746f636f6c2050726f706f73616c7320636f6e74726163742063616e2075706461746520612073657474696e67436c61696d6572732063616e6e6f7420746f74616c206d6f7265207468616e2031303025a264697066735822122062cfe9dca156833a61ab433a511e7ef782833d4cd20106f4659d1e727d0860cd64736f6c63430007060033
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 | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.