Skip to content

Commit

Permalink
refactor: revert changes on contracts that have already been audited
Browse files Browse the repository at this point in the history
  • Loading branch information
amusingaxl committed Nov 24, 2024
1 parent 84bd1de commit 728ab24
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/lite-psm-halt/SingleLitePsmHaltSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ interface LitePsmLike {
function ilk() external view returns (bytes32);
}

/// @title Emergency Spell: Lite PSM Halt
/// @notice Halts trading on LitePSM. It can halt only gem buys, sells, or both, depending on the constructor params.
/// @custom:authors [oddaf]
/// @custom:reviewers [amusingaxl, 0xdecripto]
/// @title Lite PSM Halt Emergency Spell
/// @notice Will halt trading on MCD_LITE_PSM_USDC_A, can halt only gem buys, sells, or both.
/// @custom:authors [Oddaf]
/// @custom:reviewers []
/// @custom:auditors []
/// @custom:bounties []
contract SingleLitePsmHaltSpell is DssEmergencySpell {
Expand Down Expand Up @@ -107,7 +107,7 @@ contract SingleLitePsmHaltSpell is DssEmergencySpell {
}
}

contract SingleLitePsmHaltFactory {
contract SingleLitePsmHaltSpellFactory {
event Deploy(address psm, Flow indexed flow, address spell);

function deploy(address psm, Flow flow) external returns (address spell) {
Expand Down
6 changes: 3 additions & 3 deletions src/lite-psm-halt/SingleLitePsmHaltSpell.t.integration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.16;
import {stdStorage, StdStorage} from "forge-std/Test.sol";
import {DssTest, DssInstance, MCD, GodMode} from "dss-test/DssTest.sol";
import {DssEmergencySpellLike} from "../DssEmergencySpell.sol";
import {SingleLitePsmHaltFactory, Flow} from "./SingleLitePsmHaltSpell.sol";
import {SingleLitePsmHaltSpellFactory, Flow} from "./SingleLitePsmHaltSpell.sol";

interface LitePsmLike {
function deny(address) external;
Expand Down Expand Up @@ -33,7 +33,7 @@ contract SingleLitePsmHaltSpellTest is DssTest {
address chief;
address litePsmMom;
LitePsmLike psm;
SingleLitePsmHaltFactory factory;
SingleLitePsmHaltSpellFactory factory;

function setUp() public {
vm.createSelectFork("mainnet");
Expand All @@ -43,7 +43,7 @@ contract SingleLitePsmHaltSpellTest is DssTest {
chief = dss.chainlog.getAddress("MCD_ADM");
litePsmMom = dss.chainlog.getAddress("LITE_PSM_MOM");
psm = LitePsmLike(dss.chainlog.getAddress("MCD_LITE_PSM_USDC_A"));
factory = new SingleLitePsmHaltFactory();
factory = new SingleLitePsmHaltSpellFactory();
}

function testPsmHaltOnScheduleBuy() public {
Expand Down
8 changes: 4 additions & 4 deletions src/splitter-stop/SplitterStopSpell.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ interface SplitterLike {
function hop() external view returns (uint256);
}

/// @title Emergency Spell: Splitter Stop
/// @notice Disables the Splitter (Smart Burn Engine, former Flap auctions)
/// @custom:authors [oddaf]
/// @custom:reviewers [amusingaxl, 0xdecripto]
/// @title Splitter Stop Emergency Spell
/// @notice Will disable the Splitter (Smart Burn Engine, former Flap auctions)
/// @custom:authors [Oddaf]
/// @custom:reviewers []
/// @custom:auditors []
/// @custom:bounties []
contract SplitterStopSpell is DssEmergencySpell {
Expand Down

0 comments on commit 728ab24

Please sign in to comment.