Skip to content

Commit

Permalink
feat: add SBE Parameter Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SidestreamStrongStrawberry committed Feb 20, 2025
1 parent 1b5cfa4 commit 4e2dd97
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions src/DssSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ interface MkrSkyLike {
function rate() external view returns (uint256);
}

interface StakingRewardsLike {
function setRewardsDuration(uint256) external;
}

interface ProxyLike {
function exec(address target, bytes calldata args) external payable returns (bytes memory out);
}
Expand Down Expand Up @@ -88,6 +92,7 @@ contract DssSpellAction is DssAction {
uint256 internal constant MILLION = 10 ** 6;
uint256 internal constant BILLION = 10 ** 9;
uint256 internal constant WAD = 10 ** 18;
uint256 internal constant RAD = 10 ** 45;

// ---------- Wallets ----------
address internal constant BLUE = 0xb6C09680D822F162449cdFB8248a7D3FC26Ec9Bf;
Expand All @@ -111,6 +116,8 @@ contract DssSpellAction is DssAction {
address internal constant EMSP_SPLITTER_STOP = 0x12531afC02aC18a9597Cfe8a889b7B948243a60b;
address internal immutable MCD_JOIN_DAI = DssExecLib.daiJoin();
address internal immutable MCD_VOW = DssExecLib.vow();
address internal immutable MCD_SPLIT = DssExecLib.getChangelogAddress("MCD_SPLIT");
address internal immutable REWARDS_LSMKR_USDS = DssExecLib.getChangelogAddress("REWARDS_LSMKR_USDS");
address internal immutable USDS = DssExecLib.getChangelogAddress("USDS");
address internal immutable SUSDS = DssExecLib.getChangelogAddress("SUSDS");
address internal constant ARBITRUM_ROUTER = 0x72Ce9c846789fdB6fC1f34aC4AD25Dd9ef7031ef;
Expand Down Expand Up @@ -277,6 +284,24 @@ contract DssSpellAction is DssAction {
// Note: Move converted Dai into surplus buffer
DaiJoinAbstract(MCD_JOIN_DAI).join(MCD_VOW, withdrawnUsdsAmount);

// ---------- SBE Parameter Changes ----------
// Forum: https://forum.sky.money/t/smart-burn-engine-parameter-update-feb-21-spell/26033

// Decrease vow.hump by 50 million DAI, from 120 million to 70 million DAI
DssExecLib.setValue(MCD_VOW, "hump", 70 * MILLION * RAD);

// Decrease vow.bump by 15,000 DAI, from 25,000 to 10,000 DAI
DssExecLib.setValue(MCD_VOW, "bump", 10_000 * RAD);

// Increase splitter.burn by 30.00 percentage points, from 70% to 100%
DssExecLib.setValue(MCD_SPLIT, "burn", WAD);

// Decrease splitter.hop by 14,773 seconds, from 15,649 seconds to 876 seconds
DssExecLib.setValue(MCD_SPLIT, "hop", 876);

// Note: Update farm rewards duration
StakingRewardsLike(REWARDS_LSMKR_USDS).setRewardsDuration(876);

// ---------- ALLOCATOR-SPARK-A DC-IAM parameter changes ----------
// Forum: https://forum.sky.money/t/feb-20-2025-proposed-changes-to-spark-for-upcoming-spell/25951
// Forum: https://forum.sky.money/t/feb-20-2025-proposed-changes-to-spark-for-upcoming-spell/25951/6
Expand Down
10 changes: 5 additions & 5 deletions src/test/config.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ contract Config {
afterSpell.vow_wait = 156 hours; // In seconds
afterSpell.vow_dump = 250; // In whole Dai units
afterSpell.vow_sump = 50 * THOUSAND; // In whole Dai units
afterSpell.vow_bump = 25 * THOUSAND; // In whole Dai units
afterSpell.vow_hump_min = 120 * MILLION; // In whole Dai units
afterSpell.vow_hump_max = 120 * MILLION; // In whole Dai units
afterSpell.split_hop = 15_649 seconds; // In seconds
afterSpell.split_burn = 70_00; // In basis points
afterSpell.vow_bump = 10 * THOUSAND; // In whole Dai units
afterSpell.vow_hump_min = 70 * MILLION; // In whole Dai units
afterSpell.vow_hump_max = 70 * MILLION; // In whole Dai units
afterSpell.split_hop = 876 seconds; // In seconds
afterSpell.split_burn = 100_00; // In basis points
afterSpell.split_farm = "REWARDS_LSMKR_USDS"; // Farm chainlog key
afterSpell.flap_want = 9800; // In basis points
afterSpell.dog_Hole = 150 * MILLION; // In whole Dai units
Expand Down

0 comments on commit 4e2dd97

Please sign in to comment.