Skip to content

Commit 57e3359

Browse files
committed
strip timestamp from allocations
1 parent 38fb29b commit 57e3359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/convertToRawData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export async function createRawSections(
131131
const totalNewWeeklyRate = linearAllocations.reduce((sum, a) => sum + (a.newRatePerWeek || 0), 0);
132132
metadata.unlockEvents.push({
133133
timestamp,
134-
cliffAllocations,
135-
linearAllocations,
134+
cliffAllocations: cliffAllocations.map(({ timestamp, ...rest }) => rest),
135+
linearAllocations: linearAllocations.map(({ timestamp, ...rest }) => rest),
136136
summary: {
137137
totalTokensCliff: totalTokensCliff > 0 ? totalTokensCliff : undefined,
138138
netChangeInWeeklyRate: netChangeInWeeklyRate !== 0 ? netChangeInWeeklyRate : undefined,

0 commit comments

Comments
 (0)