Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023-08-30 Spell #363

Merged
merged 22 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
385 changes: 103 additions & 282 deletions src/DssSpell.sol

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/DssSpell.t.base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ contract DssSpellTestBase is Config, DssTest {
CropperLike cropper = CropperLike( addr.addr("MCD_CROPPER"));

OsmMomAbstract osmMom = OsmMomAbstract( addr.addr("OSM_MOM"));
FlipperMomAbstract flipMom = FlipperMomAbstract( addr.addr("FLIPPER_MOM"));
ClipperMomAbstract clipMom = ClipperMomAbstract( addr.addr("CLIPPER_MOM"));
FlapperMomAbstract flapMom = FlapperMomAbstract( addr.addr("FLAPPER_MOM"));
AuthorityLike d3mMom = AuthorityLike( addr.addr("DIRECT_MOM"));
Expand Down Expand Up @@ -465,9 +464,6 @@ contract DssSpellTestBase is Config, DssTest {
// check OsmMom authority
assertEq(osmMom.authority(), values.osm_mom_authority, "TestError/osmMom-authority");

// check FlipperMom authority
assertEq(flipMom.authority(), values.flipper_mom_authority, "TestError/flipperMom-authority");

// check ClipperMom authority
assertEq(clipMom.authority(), values.clipper_mom_authority, "TestError/clipperMom-authority");

Expand Down Expand Up @@ -591,8 +587,6 @@ contract DssSpellTestBase is Config, DssTest {
assertEq(uint256(flip.tau()), values.collaterals[ilk].flip_tau, _concat("TestError/flip-tau-", ilk));
assertTrue(flip.tau() >= 600 && flip.tau() <= 3 days, _concat("TestError/flip-tau-range-", ilk)); // gt eq 10 minutes and lt eq 3 days

assertEq(flip.wards(address(flipMom)), values.collaterals[ilk].flipper_mom, _concat("TestError/flip-flipperMom-auth-", ilk));

assertEq(flip.wards(address(cat)), values.collaterals[ilk].liqOn ? 1 : 0, _concat("TestError/flip-liqOn-", ilk));
assertEq(flip.wards(address(end)), 1, _concat("TestError/flip-end-auth-", ilk));
assertEq(flip.wards(address(pauseProxy)), 1, _concat("TestError/flip-pause-proxy-auth-", ilk)); // Check pause_proxy ward
Expand Down
Loading