You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,11 @@ import {DssAction} from "lib/dss-exec-lib/src/DssAction.sol";
23
23
24
24
contract SpellAction is DssAction {
25
25
26
-
// This can be hardcoded away later or can use the chain-log
27
-
constructor(addresslib) DssAction(lib) public {}
26
+
constructor(addresslib, boolofficeHours) DssAction(lib, officeHours) public {}
28
27
29
28
uint256 constant MILLION=10**6;
30
29
31
-
functionexecute() external {
30
+
functionactions() public override {
32
31
setGlobalDebtCeiling(1500*MILLION);
33
32
setIlkDebtCeiling("ETH-A", 10*MILLION);
34
33
}
@@ -37,13 +36,16 @@ contract SpellAction is DssAction {
37
36
38
37
The `SpellAction.sol` file must always inherit `DssAction` from `lib/dss-exec-lib`.
39
38
39
+
The developer must override the `actions()` function and place all spell actions within. This is called by the `execute()` function in the pause, which is subject to an optional limiter for office hours.
40
+
41
+
*Note:* All variables within the SpellAction MUST be defined as constants, or assigned at runtime inside of the `actions()` function. Variable memory storage is not available within a Spell Action due to the underlying delegatecall mechanisms.
0 commit comments