@@ -60,7 +60,6 @@ interface SplitterLike {
6060 function usdsJoin () external view returns (address );
6161 function hop () external view returns (uint256 );
6262 function rely (address ) external ;
63- function deny (address ) external ;
6463 function file (bytes32 , uint256 ) external ;
6564 function file (bytes32 , address ) external ;
6665}
@@ -72,15 +71,13 @@ interface FarmLike {
7271}
7372
7473interface KickerLike {
74+ function vat () external view returns (address );
75+ function vow () external view returns (address );
76+ function splitter () external view returns (address );
7577 function file (bytes32 , uint256 ) external ;
7678 function file (bytes32 , int256 ) external ;
7779}
7880
79- interface VowLike {
80- function sump () external view returns (uint256 );
81- function file (bytes32 , uint256 ) external ;
82- }
83-
8481struct FlapperUniV2Config {
8582 uint256 want;
8683 address pip;
@@ -233,17 +230,21 @@ library FlapperInit {
233230 ) internal {
234231 require (cfg.kbump % RAY == 0 , "kbump not multiple of RAY " );
235232
236- VowLike vow = VowLike (dss.chainlog.getAddress ("MCD_VOW " ));
237- require (vow.sump () == type (uint256 ).max, "flop is not inactive " );
233+ address splitter = dss.chainlog.getAddress ("MCD_SPLIT " );
234+ require (KickerLike (kicker).vat () == address (dss.vat), "vat missmatch " );
235+ require (KickerLike (kicker).vow () == address (dss.vow), "vow missmatch " );
236+ require (KickerLike (kicker).splitter () == splitter, "splitter missmatch " );
237+
238+ require (dss.vow.sump () == type (uint256 ).max, "flop is not inactive " );
238239
239- vow.file ("bump " , 0 );
240- vow.file ("hump " , type (uint256 ).max);
240+ dss. vow.file ("bump " , 0 );
241+ dss. vow.file ("hump " , type (uint256 ).max);
241242
242243 KickerLike (kicker).file ("khump " , cfg.khump);
243244 KickerLike (kicker).file ("kbump " , cfg.kbump);
244245
245246 dss.vat.rely (kicker);
246- SplitterLike (dss.chainlog. getAddress ( " MCD_SPLIT " ) ).rely (kicker);
247+ SplitterLike (splitter ).rely (kicker);
247248
248249 dss.chainlog.setAddress (cfg.chainlogKey, kicker);
249250 }
0 commit comments