Skip to content

Commit

Permalink
Add check to deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbreak1211 committed Jun 3, 2024
1 parent 3b14750 commit 8335dff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deploy/LockstakeInit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ library LockstakeInit {
require(clipper.dog() == address(dss.dog), "Clipper dog mismatch");
require(clipper.spotter() == address(dss.spotter), "Clipper spotter mismatch");

require(cfg.gap <= cfg.maxLine, "gap greater than max line");
require(cfg.dust <= cfg.hole, "dust greater than hole");
require(cfg.duty >= RAY && cfg.duty <= RATES_ONE_HUNDRED_PCT, "duty out of boundaries");
require(cfg.mat >= RAY && cfg.mat < 10 * RAY, "mat out of boundaries");
Expand Down

0 comments on commit 8335dff

Please sign in to comment.