Skip to content

Commit

Permalink
feat: rate update & chore: update target date
Browse files Browse the repository at this point in the history
  • Loading branch information
SidestreamStrongStrawberry committed Aug 9, 2024
1 parent a08b3ef commit 41fdba2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 10 deletions.
39 changes: 37 additions & 2 deletions src/DssSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract DssSpellAction is DssAction {
// This should be modified weekly to provide a summary of the actions
// Hash: cast keccak -- "$(wget 'TODO' -q -O - 2>/dev/null)"
string public constant override description =
"2024-08-08 MakerDAO Executive Spell | Hash: TODO";
"2024-08-12 MakerDAO Executive Spell | Hash: TODO";

// Set office hours according to the summary
function officeHours() public pure override returns (bool) {
Expand All @@ -59,7 +59,15 @@ contract DssSpellAction is DssAction {
// https://ipfs.io/ipfs/QmVp4mhhbwWGTfbh2BzwQB9eiBrQBKiqcPRZCaAxNUaar6
//
// uint256 internal constant X_PCT_RATE = ;
uint256 internal constant NINE_PCT_RATE = 1000000002732676825177582095;
uint256 internal constant SIX_PT_TWO_FIVE_PCT_RATE = 1000000001922394148741344865;
uint256 internal constant SIX_PT_SEVEN_FIVE_PCT_RATE = 1000000002071266685321207000;
uint256 internal constant SIX_PCT_RATE = 1000000001847694957439350562;
uint256 internal constant SEVEN_PT_TWO_FIVE_PCT_RATE = 1000000002219443553326580536;
uint256 internal constant SEVEN_PCT_RATE = 1000000002145441671308778766;
uint256 internal constant SEVEN_PT_SEVEN_FIVE_PCT_RATE = 1000000002366931224128103346;
uint256 internal constant EIGHT_PT_TWO_FIVE_PCT_RATE = 1000000002513736079215619839;
uint256 internal constant SEVEN_PT_FIVE_PCT_RATE = 1000000002293273137447730714;
uint256 internal constant NINE_PCT_RATE = 1000000002732676825177582095;

// ---------- Contracts ----------
GemAbstract internal immutable MKR = GemAbstract(DssExecLib.mkr());
Expand Down Expand Up @@ -92,6 +100,33 @@ contract DssSpellAction is DssAction {
address internal constant SPARK_SPELL = 0xAFDf518d97DEA3420f007Deea2F9fBa0a28B3227;

function actions() public override {
// ---------- Stability Fee Reductions ----------
// Forum: https://forum.makerdao.com/t/stability-scope-parameter-changes-15-sfs-dsr-spark-effective-dai-borrow-rate-reduction/24834

// ETH-A: Decrease SF by 1 percentage point, from 7.25% to 6.25%
DssExecLib.setIlkStabilityFee("ETH-A", SIX_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true);

// ETH-B: Decrease SF by 1 percentage point, from 7.75% to 6.75%
DssExecLib.setIlkStabilityFee("ETH-B", SIX_PT_SEVEN_FIVE_PCT_RATE, /* doDrip = */ true);

// ETH-C: Decrease SF by 1 percentage point, from 7% to 6%
DssExecLib.setIlkStabilityFee("ETH-C", SIX_PCT_RATE, /* doDrip = */ true);

// WSTETH-A: Decrease SF by 1 percentage point, from 8.25% to 7.25%
DssExecLib.setIlkStabilityFee("WSTETH-A", SEVEN_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true);

// WSTETH-B: Decrease SF by 1 percentage point, from 8% to 7%
DssExecLib.setIlkStabilityFee("WSTETH-B", SEVEN_PCT_RATE, /* doDrip = */ true);

// WBTC-A: Decrease SF by 1 percentage point, from 8.75% to 7.75%
DssExecLib.setIlkStabilityFee("WBTC-A", SEVEN_PT_SEVEN_FIVE_PCT_RATE, /* doDrip = */ true);

// WBTC-B: Decrease SF by 1 percentage point, from 9.25% to 8.25%
DssExecLib.setIlkStabilityFee("WBTC-B", EIGHT_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true);

// WBTC-C: Decrease SF by 1 percentage point, from 8.5% to 7.5%
DssExecLib.setIlkStabilityFee("WBTC-C", SEVEN_PT_FIVE_PCT_RATE, /* doDrip = */ true);

// ---------- Bug Bounty Payout ----------
// Forum: https://forum.makerdao.com/t/bounty-payout-request-for-immunefi-bug-32005/24605
// MIP: https://mips.makerdao.com/mips/details/MIP106#13-1-bug-bounty-program-for-makerdao-critical-infrastructure
Expand Down
16 changes: 8 additions & 8 deletions src/test/config.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ contract Config {
aL_ttl: 6 hours, // In seconds
line: 0, // In whole Dai units // Not checked here as there is auto line
dust: 7_500, // In whole Dai units
pct: 7_25, // In basis points
pct: 6_25, // In basis points
mat: 14500, // In basis points
liqType: "clip", // "" or "flip" or "clip"
liqOn: true, // If liquidations are enabled
Expand All @@ -164,7 +164,7 @@ contract Config {
aL_ttl: 6 hours,
line: 0,
dust: 25 * THOUSAND,
pct: 7_75,
pct: 6_75,
mat: 13000,
liqType: "clip",
liqOn: true,
Expand All @@ -189,7 +189,7 @@ contract Config {
aL_ttl: 8 hours,
line: 0,
dust: 3_500,
pct: 7_00,
pct: 6_00,
mat: 17000,
liqType: "clip",
liqOn: true,
Expand Down Expand Up @@ -289,7 +289,7 @@ contract Config {
aL_ttl: 24 hours,
line: 0,
dust: 7_500,
pct: 8_75,
pct: 7_75,
mat: 14500,
liqType: "clip",
liqOn: true,
Expand All @@ -314,7 +314,7 @@ contract Config {
aL_ttl: 24 hours,
line: 0,
dust: 25 * THOUSAND,
pct: 9_25,
pct: 8_25,
mat: 13000,
liqType: "clip",
liqOn: true,
Expand All @@ -339,7 +339,7 @@ contract Config {
aL_ttl: 24 hours,
line: 0,
dust: 3_500,
pct: 8_50,
pct: 7_50,
mat: 17500,
liqType: "clip",
liqOn: true,
Expand Down Expand Up @@ -1489,7 +1489,7 @@ contract Config {
aL_ttl: 12 hours,
line: 0,
dust: 7_500,
pct: 8_25,
pct: 7_25,
mat: 150_00,
liqType: "clip",
liqOn: true,
Expand All @@ -1514,7 +1514,7 @@ contract Config {
aL_ttl: 12 hours,
line: 0,
dust: 3_500,
pct: 8_00,
pct: 7_00,
mat: 175_00,
liqType: "clip",
liqOn: true,
Expand Down

0 comments on commit 41fdba2

Please sign in to comment.