From 702dfd967103ce5d5815312d35ff02cada19939a Mon Sep 17 00:00:00 2001 From: define Date: Thu, 21 Sep 2023 09:15:54 +0100 Subject: [PATCH 1/4] ens adapter --- protocols/ens.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 protocols/ens.ts diff --git a/protocols/ens.ts b/protocols/ens.ts new file mode 100644 index 0000000..0dce856 --- /dev/null +++ b/protocols/ens.ts @@ -0,0 +1,41 @@ +import { manualCliff, manualLinear, manualStep } from "../adapters/manual"; +import { Protocol } from "../types/adapters"; +import { periodToSeconds } from "../utils/time"; + +const start = 1636329600; // 8 November 2021 00:00:00 +const qty = 100000000; //100m + +const ens: Protocol = { + "Airdrop": manualCliff(start, qty * 0.25), + "Core Contributors": manualLinear( + start, start + 4 * periodToSeconds.year, + 0.1954 * qty, + ), + "Other contributors": manualLinear( + start, start + 4 * periodToSeconds.year, + 0.0546 * qty, + ), + "DAO Community Treasury": [ + manualCliff(start, 5000000), // 5m tokens release at start + manualStep( + start, + periodToSeconds.month, + 48, + (45000000) / 48, + ), // monthly steps for the next 48 months + ], + meta: { + notes: [ + `Tokens for core contributors and launch advisors will have a four year lock-up and vesting schedule.`, + ], + token: "ethereum:0xc18360217d8f7ab5e7c516566761ea12ce7f9d72", + sources: ["https://ens.mirror.xyz/-eaqMv7XPikvXhvjbjzzPNLS4wzcQ8vdOgi9eNXeUuY"], + protocolIds: ["2519"], + }, + categories: { + insiders: ["Other contributors", "Core Contributors", "DAO Community Treasury"], + publicSale: [], + airdrop: ["Airdrop"] + }, +}; +export default ens; \ No newline at end of file From 7b390966a94790f8095891d87ff269d592f91bb3 Mon Sep 17 00:00:00 2001 From: define Date: Tue, 26 Sep 2023 16:58:32 +0100 Subject: [PATCH 2/4] celestia adapter --- protocols/celestia.ts | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 protocols/celestia.ts diff --git a/protocols/celestia.ts b/protocols/celestia.ts new file mode 100644 index 0000000..8b3fe7e --- /dev/null +++ b/protocols/celestia.ts @@ -0,0 +1,65 @@ +import { manualCliff, manualLinear, manualStep } from "../adapters/manual"; +import { Protocol } from "../types/adapters"; +import { periodToSeconds } from "../utils/time"; + +const start = 1697500800; // 17 oct?! +const qty = 1000000000; //1b +const qtyEcosystem = 268000000 +const qtyCORE = 176000000 +const qtySEED = 159000000 +const qtyAB = 197000000 + +const celestia: Protocol = { + "Public Allocation": manualCliff(start, qty * 0.2), + "R&D & Ecosystem": [ + manualCliff(start, qtyEcosystem * 0.25), // 25% + manualStep( + start + periodToSeconds.year, + periodToSeconds.month, + 36, + (qtyEcosystem * 0.75) / 36, + ), // monthly steps for the next 3 years + ], + "Initial Core Contributors": [ + manualCliff(start + periodToSeconds.year, qtyCORE * 0.33), // 33% + manualStep( + start + periodToSeconds.year, + periodToSeconds.month, + 36, + (qtyCORE * 0.67) / 36, + ), // monthly steps for the next 3 years + ], + "Early Backers Seed": [ + manualCliff(start + periodToSeconds.year, qtySEED * 0.33), // 33% + manualStep( + start + periodToSeconds.year, + periodToSeconds.month, + 24, + (qtySEED * 0.67) / 24, + ), // monthly steps for the next 3 years + ], + "Early Backers Series A&B": [ + manualCliff(start + periodToSeconds.year, qtyAB * 0.33), // 25% + manualStep( + start + periodToSeconds.year, + periodToSeconds.month, + 24, + (qtyAB * 0.67) / 24, + ), // monthly steps for the next 3 years + ], + meta: { + notes: [ + `Celestia’s 1 billion TIA supply at genesis will be subject to several different unlock schedules. All tokens, locked or unlocked, may be staked, but staking rewards are unlocked upon receipt.`, + ], + token: "ethereum:-", + sources: ["https://ens.mirror.xyz/-eaqMv7XPikvXhvjbjzzPNLS4wzcQ8vdOgi9eNXeUuY"], + protocolIds: ["2519"], + }, + categories: { + insiders: ["Initial Core Contributors", "Early Backers Seed", "Early Backers Series A&B"], + publicSale: [], + airdrop: ["Public Allocation"], + farming: ["R&D & Ecosystem"] + }, +}; +export default celestia; \ No newline at end of file From 0f0d03f1a3f213de6c8f44e965fdb15aa83b3f4a Mon Sep 17 00:00:00 2001 From: define Date: Tue, 26 Sep 2023 16:59:36 +0100 Subject: [PATCH 3/4] missing --- protocols/celestia.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/celestia.ts b/protocols/celestia.ts index 8b3fe7e..e74d6f6 100644 --- a/protocols/celestia.ts +++ b/protocols/celestia.ts @@ -52,8 +52,8 @@ const celestia: Protocol = { `Celestia’s 1 billion TIA supply at genesis will be subject to several different unlock schedules. All tokens, locked or unlocked, may be staked, but staking rewards are unlocked upon receipt.`, ], token: "ethereum:-", - sources: ["https://ens.mirror.xyz/-eaqMv7XPikvXhvjbjzzPNLS4wzcQ8vdOgi9eNXeUuY"], - protocolIds: ["2519"], + sources: ["https://docs.celestia.org/learn/staking-governance-supply/"], + protocolIds: ["2519"], //add correct id }, categories: { insiders: ["Initial Core Contributors", "Early Backers Seed", "Early Backers Series A&B"], From 79c2dcf951324c4358d847cd6c9d352dc35ab29f Mon Sep 17 00:00:00 2001 From: define Date: Tue, 26 Sep 2023 17:08:28 +0100 Subject: [PATCH 4/4] final celestia --- protocols/celestia.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/protocols/celestia.ts b/protocols/celestia.ts index e74d6f6..0264c03 100644 --- a/protocols/celestia.ts +++ b/protocols/celestia.ts @@ -15,36 +15,36 @@ const celestia: Protocol = { manualCliff(start, qtyEcosystem * 0.25), // 25% manualStep( start + periodToSeconds.year, - periodToSeconds.month, - 36, - (qtyEcosystem * 0.75) / 36, - ), // monthly steps for the next 3 years + periodToSeconds.day, + 1095, + (qtyEcosystem * 0.75) / 1095, + ), // ], "Initial Core Contributors": [ manualCliff(start + periodToSeconds.year, qtyCORE * 0.33), // 33% manualStep( start + periodToSeconds.year, - periodToSeconds.month, - 36, - (qtyCORE * 0.67) / 36, - ), // monthly steps for the next 3 years + periodToSeconds.day, + 1095, + (qtyCORE * 0.67) / 1095, + ), // ], "Early Backers Seed": [ manualCliff(start + periodToSeconds.year, qtySEED * 0.33), // 33% manualStep( start + periodToSeconds.year, - periodToSeconds.month, - 24, - (qtySEED * 0.67) / 24, - ), // monthly steps for the next 3 years + periodToSeconds.day, + 365, + (qtySEED * 0.67) / 365, + ), // ], "Early Backers Series A&B": [ manualCliff(start + periodToSeconds.year, qtyAB * 0.33), // 25% manualStep( start + periodToSeconds.year, - periodToSeconds.month, - 24, - (qtyAB * 0.67) / 24, + periodToSeconds.day, + 365, + (qtyAB * 0.67) / 365, ), // monthly steps for the next 3 years ], meta: {