Skip to content

Commit

Permalink
feat: comment migration schedule dead code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaaschmidt committed Oct 31, 2024
1 parent 54ca475 commit aad71a6
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions contracts/src/migration/TLC_globalUnlockScheduleMigration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -707,21 +707,23 @@ contract TlcMigration {
}
// Modifications
sch.lockDuration = migration.newLockDuration;
if (migration.newStart != 0) {
sch.start = migration.newStart;
}
if (migration.newEnd != 0) {
sch.end = migration.newEnd;
}
if (migration.setCliff) {
sch.cliffDuration = 0;
}
if (migration.setDuration) {
sch.duration = 86400;
}
if (migration.setPeriodDuration) {
sch.periodDuration = 86400;
}
// ! NOTE: These if case are not used for the current migration date (see above). Please uncomment if you change the
// migration data above.
// if (migration.newStart != 0) {
// sch.start = migration.newStart;
// }
// if (migration.newEnd != 0) {
// sch.end = migration.newEnd;
// }
// if (migration.setCliff) {
// sch.cliffDuration = 0;
// }
// if (migration.setDuration) {
// sch.duration = 86400;
// }
// if (migration.setPeriodDuration) {
// sch.periodDuration = 86400;
// }
if (migration.ignoreGlobalUnlock) {
IgnoreGlobalUnlockSchedule.set(index, true);
}
Expand Down

0 comments on commit aad71a6

Please sign in to comment.