Skip to content

Commit

Permalink
add final rates
Browse files Browse the repository at this point in the history
  • Loading branch information
SidestreamColdMelon committed Jan 21, 2025
1 parent 17d183d commit 92dfa9b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/DssSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ contract DssSpellAction is DssAction {
// https://ipfs.io/ipfs/QmVp4mhhbwWGTfbh2BzwQB9eiBrQBKiqcPRZCaAxNUaar6
//
// uint256 internal constant X_PCT_RATE = ;
uint256 internal constant ELEVEN_PT_TWO_FIVE_PCT_RATE = 1000000003380572527855758393;
uint256 internal constant FIVE_PT_THREE_SEVEN_PCT_RATE = 1000000001658668812364456731;
uint256 internal constant ELEVEN_PT_TWO_FIVE_PCT_RATE = 1000000003380572527855758393;

// ---------- Math ----------
uint256 internal constant WAD = 10 ** 18;
Expand Down Expand Up @@ -106,8 +107,14 @@ contract DssSpellAction is DssAction {
address internal constant SPARK_SPELL = 0xFe447da54AdD21a8503eb81d328c5D60fE90eC26;

function actions() public override {
// ---------- Stability Fees Changes ----------
// Forum: https://forum.sky.money/t/stability-scope-parameter-changes-20-spark-liquidity-layer-dsr/25861

// Decrease ALLOCATOR-SPARK-A Stability Fee by 6.88 percentage points from 12.25% to 5.37%
DssExecLib.setIlkStabilityFee("ALLOCATOR-SPARK-A", FIVE_PT_THREE_SEVEN_PCT_RATE, /* doDrip = */ true);

// ---------- Savings Rate Changes ----------
// Forum: TODO
// Forum: https://forum.sky.money/t/stability-scope-parameter-changes-20-spark-liquidity-layer-dsr/25861

// Decrease DSR by 0.25 percentage points from 11.50% to 11.25%
DssExecLib.setDSR(ELEVEN_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true);
Expand Down
2 changes: 1 addition & 1 deletion src/test/config.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ contract Config {
aL_ttl: 24 hours,
line: 0,
dust: 0,
pct: 12_25,
pct: 5_37,
mat: 100_00,
liqType: "",
liqOn: false,
Expand Down
1 change: 1 addition & 0 deletions src/test/rates.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ contract Rates {
rates[ 500] = 1000000001547125957863212448;
rates[ 520] = 1000000001607468111246255079;
rates[ 525] = 1000000001622535724756171269;
rates[ 537] = 1000000001658668812364456731;
rates[ 544] = 1000000001679727448331902751;
rates[ 550] = 1000000001697766583380253701;
rates[ 554] = 1000000001709786974743980088;
Expand Down

0 comments on commit 92dfa9b

Please sign in to comment.