Skip to content

Commit

Permalink
Check in init script for tip
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbreak1211 committed Jun 5, 2024
1 parent f83e7fb commit de66d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/LockstakeInit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ library LockstakeInit {
uint256 constant internal RATES_ONE_HUNDRED_PCT = 1000000021979553151239153027;
uint256 constant internal WAD = 10**18;
uint256 constant internal RAY = 10**27;
uint256 constant internal RAD = 10**45;

function initLockstake(
DssInstance memory dss,
Expand Down Expand Up @@ -165,6 +166,7 @@ library LockstakeInit {
require(cfg.buf >= RAY && cfg.buf < 10 * RAY, "buf out of boundaries");
require(cfg.cusp < RAY, "cusp negative drop value");
require(cfg.chip < WAD, "chip equal or greater than 100%");
require(cfg.tip <= 1_000 * RAD, "tip out of boundaries");
require(cfg.chop >= WAD && cfg.chop < 2 * WAD, "chop out of boundaries");
require(cfg.tolerance < RAY, "tolerance equal or greater than 100%");

Expand Down

0 comments on commit de66d6f

Please sign in to comment.