-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
520 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
contracts/contract/dao/protocol/settings/RocketDAOProtocolSettingsMegapool.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
pragma solidity 0.8.18; | ||
|
||
import "./RocketDAOProtocolSettings.sol"; | ||
import "../../../../interface/dao/protocol/settings/RocketDAOProtocolSettingsMegapoolInterface.sol"; | ||
|
||
/// @notice Network minipool settings | ||
contract RocketDAOProtocolSettingsMegapool is RocketDAOProtocolSettings, RocketDAOProtocolSettingsMegapoolInterface { | ||
|
||
|
||
constructor(RocketStorageInterface _rocketStorageAddress) RocketDAOProtocolSettings(_rocketStorageAddress, "minipool") { | ||
version = 1; | ||
// Initialize settings on deployment | ||
if(!getBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")))) { | ||
// Apply settings | ||
// Settings initialised | ||
setBool(keccak256(abi.encodePacked(settingNameSpace, "deployed")), true); | ||
} | ||
} | ||
|
||
/// @notice | ||
function getUnstakingPeriod() override external view returns (uint256) { | ||
return getSettingUint("megapool.unstaking.period"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.