Skip to content

Commit

Permalink
Upgrade tests (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Sep 18, 2024
1 parent ba6e4d9 commit f69de78
Show file tree
Hide file tree
Showing 2 changed files with 822 additions and 893 deletions.
2 changes: 1 addition & 1 deletion contracts/sfc/SFCLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ contract SFCLib is SFCBase {
if (penalty != 0) {
penalties.push(Penalty(penalty, ld.endTime));
require(penalties.length <= 30, "too many ongoing relocks");
require(amount > ld.lockedStake / 100 || penalties.length <= 3 || endTime >= ld.endTime + 14 * 24 * 60 * 60, "too frequent relocks (github.com/Fantom-foundation/opera-sfc/wiki/Lockup-calls-reference#re-lock-stake)");
require(amount > ld.lockedStake / 100 || penalties.length <= 3 || endTime >= ld.endTime + 14 * 24 * 60 * 60, "too frequent relocks");
}
}

Expand Down
Loading

0 comments on commit f69de78

Please sign in to comment.