Skip to content

Commit

Permalink
refactor: declare timestamps once
Browse files Browse the repository at this point in the history
fix: change timestamps to 1st day of the month
  • Loading branch information
PaulRBerg committed Oct 2, 2023
1 parent ef759ee commit 5318cfa
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 74 deletions.
74 changes: 37 additions & 37 deletions script/ExactlyDraft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,43 +75,43 @@ contract ExactlyDraftScript is BaseScript {
LockupDynamic.Segment[] memory segments = new LockupDynamic.Segment[](37);

if (userIndex == 0) {
segments[0] = getSegment({ amount: 237e18, milestone: 1_717_200_000 }); // Jun 1, 2024
segments[1] = getSegment({ amount: 275e18, milestone: 1_719_792_000 }); // Jul 1, 2024
segments[2] = getSegment({ amount: 314e18, milestone: 1_722_470_400 }); // Aug 1, 2024
segments[3] = getSegment({ amount: 354e18, milestone: 1_725_148_800 }); // Sep 1, 2024
segments[4] = getSegment({ amount: 390e18, milestone: 1_727_740_800 }); // Oct 1, 2024
segments[5] = getSegment({ amount: 432e18, milestone: 1_730_419_200 }); // Nov 1, 2024
segments[6] = getSegment({ amount: 467e18, milestone: 1_733_011_200 }); // Dec 1, 2024
segments[7] = getSegment({ amount: 509e18, milestone: 1_735_689_600 }); // Jan 1, 2025
segments[8] = getSegment({ amount: 549e18, milestone: 1_738_368_000 }); // Feb 1, 2025
segments[9] = getSegment({ amount: 569e18, milestone: 1_740_787_200 }); // Mar 1, 2025
segments[10] = getSegment({ amount: 626e18, milestone: 1_743_465_600 }); // Apr 1, 2025
segments[11] = getSegment({ amount: 657e18, milestone: 1_746_057_600 }); // May 1, 2025
segments[12] = getSegment({ amount: 703e18, milestone: 1_748_736_000 }); // Jun 1, 2025
segments[13] = getSegment({ amount: 734e18, milestone: 1_751_328_000 }); // Jul 1, 2025
segments[14] = getSegment({ amount: 781e18, milestone: 1_754_006_400 }); // Aug 1, 2025
segments[15] = getSegment({ amount: 821e18, milestone: 1_756_684_800 }); // Sep 1, 2025
segments[16] = getSegment({ amount: 849e18, milestone: 1_759_276_800 }); // Oct 1, 2025
segments[17] = getSegment({ amount: 898e18, milestone: 1_761_955_200 }); // Nov 1, 2025
segments[18] = getSegment({ amount: 926e18, milestone: 1_764_547_200 }); // Dec 1, 2025
segments[19] = getSegment({ amount: 976e18, milestone: 1_767_225_600 }); // Jan 1, 2026
segments[20] = getSegment({ amount: 1016e18, milestone: 1_769_904_000 }); // Feb 1, 2026
segments[21] = getSegment({ amount: 1013e18, milestone: 1_772_323_200 }); // Mar 1, 2026
segments[22] = getSegment({ amount: 1092e18, milestone: 1_775_001_600 }); // Apr 1, 2026
segments[23] = getSegment({ amount: 1116e18, milestone: 1_777_593_600 }); // May 1, 2026
segments[24] = getSegment({ amount: 1170e18, milestone: 1_780_272_000 }); // Jun 1, 2026
segments[25] = getSegment({ amount: 1193e18, milestone: 1_782_864_000 }); // Jul 1, 2026
segments[26] = getSegment({ amount: 1248e18, milestone: 1_785_542_400 }); // Aug 1, 2026
segments[27] = getSegment({ amount: 1287e18, milestone: 1_788_220_800 }); // Sep 1, 2026
segments[28] = getSegment({ amount: 1308e18, milestone: 1_790_812_800 }); // Oct 1, 2026
segments[29] = getSegment({ amount: 1365e18, milestone: 1_793_491_200 }); // Nov 1, 2026
segments[30] = getSegment({ amount: 1384e18, milestone: 1_796_083_200 }); // Dec 1, 2026
segments[31] = getSegment({ amount: 1443e18, milestone: 1_798_761_600 }); // Jan 1, 2027
segments[32] = getSegment({ amount: 1482e18, milestone: 1_801_440_000 }); // Feb 1, 2027
segments[33] = getSegment({ amount: 1457e18, milestone: 1_803_859_200 }); // Mar 1, 2027
segments[34] = getSegment({ amount: 1559e18, milestone: 1_806_537_600 }); // Apr 1, 2027
segments[35] = getSegment({ amount: 1575e18, milestone: 1_809_129_600 }); // May 1, 2027
segments[36] = getSegment({ amount: 1449e18, milestone: 1_811_808_000 }); // Jun 1, 2027
segments[0] = getSegment({ amount: 237e18, milestone: 1_717_200_000 }); // Jun 1, 2024 at 00:00
segments[1] = getSegment({ amount: 275e18, milestone: 1_719_792_000 }); // Jul 1, 2024 at 00:00
segments[2] = getSegment({ amount: 314e18, milestone: 1_722_470_400 }); // Aug 1, 2024 at 00:00
segments[3] = getSegment({ amount: 354e18, milestone: 1_725_148_800 }); // Sep 1, 2024 at 00:00
segments[4] = getSegment({ amount: 390e18, milestone: 1_727_740_800 }); // Oct 1, 2024 at 00:00
segments[5] = getSegment({ amount: 432e18, milestone: 1_730_419_200 }); // Nov 1, 2024 at 00:00
segments[6] = getSegment({ amount: 467e18, milestone: 1_733_011_200 }); // Dec 1, 2024 at 00:00
segments[7] = getSegment({ amount: 509e18, milestone: 1_735_689_600 }); // Jan 1, 2025 at 00:00
segments[8] = getSegment({ amount: 549e18, milestone: 1_738_368_000 }); // Feb 1, 2025 at 00:00
segments[9] = getSegment({ amount: 569e18, milestone: 1_740_787_200 }); // Mar 1, 2025 at 00:00
segments[10] = getSegment({ amount: 626e18, milestone: 1_743_465_600 }); // Apr 1, 2025 at 00:00
segments[11] = getSegment({ amount: 657e18, milestone: 1_746_057_600 }); // May 1, 2025 at 00:00
segments[12] = getSegment({ amount: 703e18, milestone: 1_748_736_000 }); // Jun 1, 2025 at 00:00
segments[13] = getSegment({ amount: 734e18, milestone: 1_751_328_000 }); // Jul 1, 2025 at 00:00
segments[14] = getSegment({ amount: 781e18, milestone: 1_754_006_400 }); // Aug 1, 2025 at 00:00
segments[15] = getSegment({ amount: 821e18, milestone: 1_756_684_800 }); // Sep 1, 2025 at 00:00
segments[16] = getSegment({ amount: 849e18, milestone: 1_759_276_800 }); // Oct 1, 2025 at 00:00
segments[17] = getSegment({ amount: 898e18, milestone: 1_761_955_200 }); // Nov 1, 2025 at 00:00
segments[18] = getSegment({ amount: 926e18, milestone: 1_764_547_200 }); // Dec 1, 2025 at 00:00
segments[19] = getSegment({ amount: 976e18, milestone: 1_767_225_600 }); // Jan 1, 2026 at 00:00
segments[20] = getSegment({ amount: 1016e18, milestone: 1_769_904_000 }); // Feb 1, 2026 at 00:00
segments[21] = getSegment({ amount: 1013e18, milestone: 1_772_323_200 }); // Mar 1, 2026 at 00:00
segments[22] = getSegment({ amount: 1092e18, milestone: 1_775_001_600 }); // Apr 1, 2026 at 00:00
segments[23] = getSegment({ amount: 1116e18, milestone: 1_777_593_600 }); // May 1, 2026 at 00:00
segments[24] = getSegment({ amount: 1170e18, milestone: 1_780_272_000 }); // Jun 1, 2026 at 00:00
segments[25] = getSegment({ amount: 1193e18, milestone: 1_782_864_000 }); // Jul 1, 2026 at 00:00
segments[26] = getSegment({ amount: 1248e18, milestone: 1_785_542_400 }); // Aug 1, 2026 at 00:00
segments[27] = getSegment({ amount: 1287e18, milestone: 1_788_220_800 }); // Sep 1, 2026 at 00:00
segments[28] = getSegment({ amount: 1308e18, milestone: 1_790_812_800 }); // Oct 1, 2026 at 00:00
segments[29] = getSegment({ amount: 1365e18, milestone: 1_793_491_200 }); // Nov 1, 2026 at 00:00
segments[30] = getSegment({ amount: 1384e18, milestone: 1_796_083_200 }); // Dec 1, 2026 at 00:00
segments[31] = getSegment({ amount: 1443e18, milestone: 1_798_761_600 }); // Jan 1, 2027 at 00:00
segments[32] = getSegment({ amount: 1482e18, milestone: 1_801_440_000 }); // Feb 1, 2027 at 00:00
segments[33] = getSegment({ amount: 1457e18, milestone: 1_803_859_200 }); // Mar 1, 2027 at 00:00
segments[34] = getSegment({ amount: 1559e18, milestone: 1_806_537_600 }); // Apr 1, 2027 at 00:00
segments[35] = getSegment({ amount: 1575e18, milestone: 1_809_129_600 }); // May 1, 2027 at 00:00
segments[36] = getSegment({ amount: 1449e18, milestone: 1_811_808_000 }); // Jun 1, 2027 at 00:00
} else {
revert("Invalid user index");
}
Expand Down
Loading

0 comments on commit 5318cfa

Please sign in to comment.