-
Notifications
You must be signed in to change notification settings - Fork 54
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
1 parent
6a65196
commit ffc8235
Showing
14 changed files
with
6,702 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
// SPDX-FileCopyrightText: © 2020 Dai Foundation <www.daifoundation.org> | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
pragma solidity 0.8.16; | ||
|
||
import "dss-exec-lib/DssExec.sol"; | ||
import "dss-exec-lib/DssAction.sol"; | ||
import { GemAbstract } from "dss-interfaces/ERC/GemAbstract.sol"; | ||
|
||
interface DssCronSequencerLike { | ||
function addJob(address job) external; | ||
function removeJob(address job) external; | ||
} | ||
|
||
interface ProxyLike { | ||
function exec(address target, bytes calldata args) external payable returns (bytes memory out); | ||
} | ||
|
||
contract DssSpellAction is DssAction { | ||
// Provides a descriptive tag for bot consumption | ||
// This should be modified weekly to provide a summary of the actions | ||
// Hash: cast keccak -- "$(wget 'https://raw.githubusercontent.com/makerdao/community/ca9a6eb8d41ddc11614b32d699f5b220434e58e4/governance/votes/Executive%20Vote%20-%20May%2016%2C%202024.md' -q -O - 2>/dev/null)" | ||
string public constant override description = | ||
"2024-05-16 MakerDAO Executive Spell | Hash: 0xcdf22bbf7c42be8c09b48ce49b0365b8f061e4d674387b176d9eb9d563e706b2"; | ||
|
||
// Set office hours according to the summary | ||
function officeHours() public pure override returns (bool) { | ||
return false; | ||
} | ||
|
||
// ---------- Rates ---------- | ||
// Many of the settings that change weekly rely on the rate accumulator | ||
// described at https://docs.makerdao.com/smart-contract-modules/rates-module | ||
// To check this yourself, use the following rate calculation (example 8%): | ||
// | ||
// $ bc -l <<< 'scale=27; e( l(1.08)/(60 * 60 * 24 * 365) )' | ||
// | ||
// A table of rates can be found at | ||
// https://ipfs.io/ipfs/QmVp4mhhbwWGTfbh2BzwQB9eiBrQBKiqcPRZCaAxNUaar6 | ||
// | ||
// uint256 internal constant X_PCT_1000000003022265980097387650RATE = ; | ||
uint256 internal constant EIGHT_PCT_RATE = 1000000002440418608258400030; | ||
uint256 internal constant EIGHT_PT_TWO_FIVE_PCT_RATE = 1000000002513736079215619839; | ||
uint256 internal constant EIGHT_PT_SEVEN_FIVE_PCT_RATE = 1000000002659864411854984565; | ||
uint256 internal constant NINE_PCT_RATE = 1000000002732676825177582095; | ||
uint256 internal constant NINE_PT_TWO_FIVE_PCT_RATE = 1000000002805322428706865331; | ||
uint256 internal constant NINE_PT_FIVE_PCT_RATE = 1000000002877801985002875644; | ||
uint256 internal constant NINE_PT_SEVEN_FIVE_PCT_RATE = 1000000002950116251408586949; | ||
uint256 internal constant TEN_PT_TWO_FIVE_PCT_RATE = 1000000003094251918120023627; | ||
|
||
// ---------- Contract addresses ---------- | ||
GemAbstract internal immutable MKR = GemAbstract(DssExecLib.mkr()); | ||
|
||
// ---------- Dss-Cron Update ---------- | ||
address internal immutable CRON_SEQUENCER = DssExecLib.getChangelogAddress("CRON_SEQUENCER"); | ||
address internal immutable CRON_D3M_JOB = DssExecLib.getChangelogAddress("CRON_D3M_JOB"); | ||
address internal constant CRON_D3M_JOB_NEW = 0x2Ea4aDE144485895B923466B4521F5ebC03a0AeF; | ||
|
||
// ---------- Launch Funding Transfers ---------- | ||
address internal constant LAUNCH_PROJECT_FUNDING = 0x3C5142F28567E6a0F172fd0BaaF1f2847f49D02F; | ||
|
||
// ---------- Bug Bounty Payouts ---------- | ||
address internal constant IMMUNEFI_COMISSION = 0x7119f398b6C06095c6E8964C1f58e7C1BAa79E18; | ||
address internal constant IMMUNEFI_USER_PAYOUT_2024_05_16 = 0xa24EC79bdF03bB325F36878573B13AedFEd0717f; | ||
|
||
// ---------- Whistle-blower Bounty Payout ---------- | ||
address internal constant COMPACTER = 0xbbd4bC3FE72691663c6ffE984Bcdb6C6E6b3a8Dd; | ||
|
||
// ---------- Delegate Compensation ---------- | ||
address internal constant BLUE = 0xb6C09680D822F162449cdFB8248a7D3FC26Ec9Bf; | ||
address internal constant CLOAKY = 0x869b6d5d8FA7f4FFdaCA4D23FFE0735c5eD1F818; | ||
address internal constant BONAPUBLICA = 0x167c1a762B08D7e78dbF8f24e5C3f1Ab415021D3; | ||
address internal constant TRUENAME = 0x612F7924c367575a0Edf21333D96b15F1B345A5d; | ||
address internal constant JULIACHANG = 0x252abAEe2F4f4b8D39E5F12b163eDFb7fac7AED7; | ||
address internal constant VIGILANT = 0x2474937cB55500601BCCE9f4cb0A0A72Dc226F61; | ||
address internal constant PIPKIN = 0x0E661eFE390aE39f90a58b04CF891044e56DEDB7; | ||
address internal constant JAG = 0x58D1ec57E4294E4fe650D1CB12b96AE34349556f; | ||
address internal constant BYTERON = 0xc2982e72D060cab2387Dba96b846acb8c96EfF66; | ||
address internal constant UPMAKER = 0xbB819DF169670DC71A16F58F55956FE642cc6BcD; | ||
|
||
// ---------- Spark Spell ---------- | ||
// Spark Proxy: https://github.com/marsfoundation/sparklend-deployments/blob/bba4c57d54deb6a14490b897c12a949aa035a99b/script/output/1/primary-sce-latest.json#L2 | ||
address internal constant SPARK_PROXY = 0x3300f198988e4C9C63F75dF86De36421f06af8c4; | ||
address internal constant SPARK_SPELL = 0x901E4450f01ae1A2615E384b9104888Cb9Cb02FF; | ||
|
||
function actions() public override { | ||
// ---------- Dss-Cron Update ---------- | ||
// Forum: https://forum.makerdao.com/t/executive-inclusion-dss-cron-update/24269 | ||
|
||
// Update D3MJob in the sequencer (0x238b4E35dAed6100C6162fAE4510261f88996EC9): | ||
// Note: This action is done in the following two steps | ||
|
||
// sequencer.removeJob(0x1Bb799509b0B039345f910dfFb71eEfAc7022323); | ||
DssCronSequencerLike(CRON_SEQUENCER).removeJob(CRON_D3M_JOB); | ||
|
||
// sequencer.addJob(0x2Ea4aDE144485895B923466B4521F5ebC03a0AeF); | ||
DssCronSequencerLike(CRON_SEQUENCER).addJob(CRON_D3M_JOB_NEW); | ||
|
||
// Note: update CRON_D3M_JOB address in the chainlog | ||
DssExecLib.setChangelogAddress("CRON_D3M_JOB", CRON_D3M_JOB_NEW); | ||
|
||
// ---------- Launch Funding Transfers ---------- | ||
// Forum: https://forum.makerdao.com/t/utilization-of-the-launch-project-under-the-accessibility-scope/21468/16 | ||
// MIP: https://mips.makerdao.com/mips/details/MIP108#9-1-launch-project-budget | ||
|
||
// Launch Project - 5358007 DAI - 0x3C5142F28567E6a0F172fd0BaaF1f2847f49D02F | ||
DssExecLib.sendPaymentFromSurplusBuffer(LAUNCH_PROJECT_FUNDING, 5_358_007); | ||
|
||
// Launch Project - 1969.17 MKR - 0x3C5142F28567E6a0F172fd0BaaF1f2847f49D02F | ||
MKR.transfer(LAUNCH_PROJECT_FUNDING, 1969.17 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// ---------- Bug Bounty Payouts ---------- | ||
// Forum: https://forum.makerdao.com/t/bounty-payout-request-for-immunefi-bug-29806/24240 | ||
|
||
// Immunefi Bounty - 5000 DAI - 0x7119f398b6C06095c6E8964C1f58e7C1BAa79E18 | ||
DssExecLib.sendPaymentFromSurplusBuffer(IMMUNEFI_COMISSION, 5_000); | ||
|
||
// Bug Bounty - 50000 DAI - 0xa24EC79bdF03bB325F36878573B13AedFEd0717f | ||
DssExecLib.sendPaymentFromSurplusBuffer(IMMUNEFI_USER_PAYOUT_2024_05_16, 50_000); | ||
|
||
// ---------- Whistle-blower Bounty Payout ---------- | ||
// Forum: https://forum.makerdao.com/t/ad-derecognition-due-to-operational-security-breach-april-5-2024/24043/5 | ||
// MIP: https://mips.makerdao.com/mips/details/MIP101#2-6-3-4-2 | ||
|
||
// Compacter (Whistleblower) - 20.84 MKR - 0xbbd4bC3FE72691663c6ffE984Bcdb6C6E6b3a8Dd | ||
MKR.transfer(COMPACTER, 20.84 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// ---------- Stability Scope Parameter Changes ---------- | ||
// Forum: https://forum.makerdao.com/t/stability-scope-parameter-changes-13-under-sta-article-3-3/24250 | ||
|
||
// ETH-A: Decrease the Stability Fee by 2 percentage points from 10.25% to 8.25% | ||
DssExecLib.setIlkStabilityFee("ETH-A", EIGHT_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// ETH-B: Decrease the Stability Fee by 2 percentage points from 10.75% to 8.75% | ||
DssExecLib.setIlkStabilityFee("ETH-B", EIGHT_PT_SEVEN_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// ETH-C: Decrease the Stability Fee by 2 percentage points from 10.00% to 8.00% | ||
DssExecLib.setIlkStabilityFee("ETH-C", EIGHT_PCT_RATE, /* doDrip = */ true); | ||
|
||
// WSTETH-A: Decrease the Stability Fee by 2 percentage points from 11.25% to 9.25% | ||
DssExecLib.setIlkStabilityFee("WSTETH-A", NINE_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// WSTETH-B: Decrease the Stability Fee by 2 percentage points from 11.00% to 9.00% | ||
DssExecLib.setIlkStabilityFee("WSTETH-B", NINE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// WBTC-A: Decrease the Stability Fee by 2 percentage points from 11.75% to 9.75% | ||
DssExecLib.setIlkStabilityFee("WBTC-A", NINE_PT_SEVEN_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// WBTC-B: Decrease the Stability Fee by 2 percentage points from 12.25% to 10.25% | ||
DssExecLib.setIlkStabilityFee("WBTC-B", TEN_PT_TWO_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// WBTC-C: Decrease the Stability Fee by 2 percentage points from 11.50% to 9.50% | ||
DssExecLib.setIlkStabilityFee("WBTC-C", NINE_PT_FIVE_PCT_RATE, /* doDrip = */ true); | ||
|
||
// DSR: Decrease the Dai Savings Rate by 2 percentage points from 10.00% to 8.00% | ||
DssExecLib.setDSR(EIGHT_PCT_RATE, /* doDrip = */ true); | ||
|
||
// ---------- Delegate Compensation ---------- | ||
// Forum: https://forum.makerdao.com/t/april-2024-aligned-delegate-compensation/24272 | ||
// MIP: https://mips.makerdao.com/mips/details/MIP101#2-6-3-aligned-delegate-income-and-participation-requirements | ||
|
||
// BLUE - 41.67 MKR - 0xb6C09680D822F162449cdFB8248a7D3FC26Ec9Bf | ||
MKR.transfer(BLUE, 41.67 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// Cloaky - 41.67 MKR - 0x869b6d5d8FA7f4FFdaCA4D23FFE0735c5eD1F818 | ||
MKR.transfer(CLOAKY, 41.67 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// BONAPUBLICA - 28.23 MKR - 0x167c1a762B08D7e78dbF8f24e5C3f1Ab415021D3 | ||
MKR.transfer(BONAPUBLICA, 28.23 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// TRUE NAME - 27.52 MKR - 0x612F7924c367575a0Edf21333D96b15F1B345A5d | ||
MKR.transfer(TRUENAME, 27.52 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// JuliaChang - 24.20 MKR - 0x252abAEe2F4f4b8D39E5F12b163eDFb7fac7AED7 | ||
MKR.transfer(JULIACHANG, 24.20 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// vigilant - 13.89 MKR - 0x2474937cB55500601BCCE9f4cb0A0A72Dc226F61 | ||
MKR.transfer(VIGILANT, 13.89 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// Pipkin - 13.44 MKR - 0x0E661eFE390aE39f90a58b04CF891044e56DEDB7 | ||
MKR.transfer(PIPKIN, 13.44 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// JAG - 7.17 MKR - 0x58D1ec57E4294E4fe650D1CB12b96AE34349556f | ||
MKR.transfer(JAG, 7.17 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// Byteron - 6.72 MKR - 0xc2982e72D060cab2387Dba96b846acb8c96EfF66 | ||
MKR.transfer(BYTERON, 6.72 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// UPMaker - 3.58 MKR - 0xbB819DF169670DC71A16F58F55956FE642cc6BcD | ||
MKR.transfer(UPMAKER, 3.58 ether); // NOTE: 'ether' is a keyword helper, only MKR is transferred here | ||
|
||
// ---------- Spark Spell ---------- | ||
// Forum: https://forum.makerdao.com/t/stability-scope-parameter-changes-13-under-sta-article-3-3/24250 | ||
|
||
// Trigger Spark Proxy Spell at 0x901E4450f01ae1A2615E384b9104888Cb9Cb02FF | ||
ProxyLike(SPARK_PROXY).exec(SPARK_SPELL, abi.encodeWithSignature("execute()")); | ||
|
||
// Note: bump chainlog version due to the updated CRON_D3M_JOB address | ||
DssExecLib.setChangelogVersion("1.17.4"); | ||
} | ||
} | ||
|
||
contract DssSpell is DssExec { | ||
constructor() DssExec(block.timestamp + 30 days, address(new DssSpellAction())) {} | ||
} |
Oops, something went wrong.