Skip to content

Commit f333d8d

Browse files
committed
skip mantle extrapolation
1 parent 80b60fd commit f333d8d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

protocols/mantle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const mantle: Protocol = {
5151
lastRecord: (backfill: boolean) => latest(chain, deployed, backfill),
5252
key: "Treasury",
5353
allocation: 3046328614,
54+
skipExtrapolation: true,
5455
},
5556
],
5657
},

types/adapters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export type IncompleteSection = {
106106
key: string;
107107
allocation: number | undefined;
108108
lastRecord: any;
109+
skipExtrapolation?: boolean;
109110
};
110111
export type SectionType =
111112
| "publicSale"

utils/convertToChartData.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function appendForecast(
196196
const timestamp =
197197
Math.floor(unixTimestampNow() / RESOLUTION_SECONDS) * RESOLUTION_SECONDS;
198198

199-
if (incompleteSection.allocation) {
199+
if (incompleteSection.allocation && !incompleteSection.skipExtrapolation) {
200200
const relatedSections = chartData.filter(
201201
(d: ChartSection) => d.section == incompleteSection.key,
202202
);
@@ -248,10 +248,12 @@ function appendForecast(
248248
}
249249
}
250250

251-
if (!("notes" in data.metadata)) data.metadata.notes = [];
252-
data.metadata.notes?.push(
253-
`Only past ${incompleteSection.key} unlocks have been included in this analysis, because ${incompleteSection.key} allocation is unlocked adhoc. Future unlocks have been extrapolated, which may not be accurate.`,
254-
);
251+
if (!incompleteSection.skipExtrapolation) {
252+
if (!("notes" in data.metadata)) data.metadata.notes = [];
253+
data.metadata.notes?.push(
254+
`Only past ${incompleteSection.key} unlocks have been included in this analysis, because ${incompleteSection.key} allocation is unlocked adhoc. Future unlocks have been extrapolated, which may not be accurate.`,
255+
);
256+
}
255257

256258
incompleteSection.lastRecord = err
257259
? null

0 commit comments

Comments
 (0)