Skip to content

Commit 58370ac

Browse files
authored
Merge pull request #132 from zoheb391/chore/fix-spike
chore: fix false spike in chainflip chart
2 parents af4f0e4 + ee2f3f2 commit 58370ac

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

protocols/chainflip.ts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,25 @@ import { manualCliff, manualLinear } from "../adapters/manual";
33
import { Protocol } from "../types/adapters";
44
import { periodToSeconds } from "../utils/time";
55

6-
const start = 1732233600;
7-
const contributor = 1700697600;
6+
const start = 1732233600; // Nov'24
7+
const tge = 1700697600; // Nov'23
88
const token = "0x826180541412d574cf1336d22c0c0a287822678a";
99
const chain = "ethereum";
1010

11-
const typeA = (amount: number) =>
12-
manualCliff(start + periodToSeconds.year, amount);
13-
const typeB = (amount: number) => [
14-
manualCliff(start, amount * 0.2),
15-
manualLinear(start, start + periodToSeconds.year, amount * 0.8),
16-
];
17-
1811
const chainflip: Protocol = {
1912
"Node Operators Programs": manualCliff(start, 4_750_000),
2013
"Token Sale": manualCliff(start, 2_066_314),
2114
"Liquid Treasury": manualCliff(start, 4_968_503),
22-
"Strategic Investors": [typeA(18_886_906), ...typeB(3_162_974)],
23-
"Oxen Foundation": [typeA(3_200_000), ...typeB(1_000_000)],
15+
"Strategic Investors": manualCliff(start, 34_181_497),
16+
"Oxen Foundation": manualCliff(start, 4_200_000),
2417
Contributors: (backfill: boolean) =>
2518
balance(
2619
["0xCE317d9909F5dDD30dcd7331f832E906Adc81f5d"],
2720
token,
2821
chain,
2922
"chainflip",
30-
contributor,
31-
backfill,
23+
tge,
24+
backfill
3225
),
3326
"Treasury Reserves": [],
3427
meta: {
@@ -44,8 +37,7 @@ const chainflip: Protocol = {
4437
{
4538
key: "Contributors",
4639
allocation: 13_000_000,
47-
lastRecord: (backfill: boolean) =>
48-
latest("chainflip", contributor, backfill),
40+
lastRecord: (backfill: boolean) => latest("chainflip", tge, backfill),
4941
},
5042
],
5143
},

0 commit comments

Comments
 (0)