From a894882eb945f04136888a0409a650bd8ac0f548 Mon Sep 17 00:00:00 2001 From: Jonathan Lodge Date: Mon, 4 Nov 2024 18:13:23 +0800 Subject: [PATCH 1/4] Added the initial CBL Protocol. --- protocols/cbl.ts | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 protocols/cbl.ts diff --git a/protocols/cbl.ts b/protocols/cbl.ts new file mode 100644 index 0000000..520bc52 --- /dev/null +++ b/protocols/cbl.ts @@ -0,0 +1,53 @@ +import { manualCliff, manualStep } from "../adapters/manual"; +import { Protocol } from "../types/adapters"; +import { periodToSeconds } from "../utils/time"; + +const TGE = 1730984400; // 2024-11-07 13:00 UTC +const TOTAL_SUPPLY = 1e9; // 1,000,000,000 +const CBL_ADDRESS = "0xD6b3d81868770083307840F513A3491960b95cb6"; +const CHAIN = "arbitrum"; + +const cbl: Protocol = { + // 26% of Total Allocation + // 6 month cliff, followed by a 24-month daily linear vesting + "Private Sale": manualStep(TGE + periodToSeconds.month * 7, periodToSeconds.month, 24, (TOTAL_SUPPLY * 0.26) / 24), + // 3.0% of Total Allocation + // 30% on TGE, followed by a 6-month daily linear vesting + "Public Sale": [ + manualCliff(TGE, TOTAL_SUPPLY * 0.03 * 0.3), + manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 6, (TOTAL_SUPPLY * 0.03 * 0.7) / 6), + ], + // 30% of Total Allocation + // 15% on TGE, followed by a 60-month daily linear vesting + "Community Growth & Rewards": [ + manualCliff(TGE, TOTAL_SUPPLY * 0.3 * 0.15), + manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 60, (TOTAL_SUPPLY * 0.3 * 0.85) / 60), + ], + // 20% of Total Allocation + // 10% on TGE, followed by a 60-month daily linear vesting + Treasury: [ + manualCliff(TGE, TOTAL_SUPPLY * 0.2 * 0.1), + manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 60, (TOTAL_SUPPLY * 0.2 * 0.9) / 60), + ], + // 3.0% of Total Allocation + // 100% on TGE + Liquidity: manualCliff(TGE, TOTAL_SUPPLY * 0.03), + // 3.0% of Total Allocation + // 12 month cliff, followed by a 36-month daily linear vesting + "Partners & Advisors": manualStep(TGE + periodToSeconds.year, periodToSeconds.month, 36, (TOTAL_SUPPLY * 0.03) / 36), + // 15% of Total Allocation + // 12 month cliff, followed by a 36-month daily linear vesting + "Core & Future Team": manualStep(TGE + periodToSeconds.year, periodToSeconds.month, 36, (TOTAL_SUPPLY * 0.15) / 36), + meta: { + sources: ["https://docs.credbull.io/docs/litepaper"], + token: `${CHAIN}:${CBL_ADDRESS}`, + protocolIds: [], + }, + categories: { + insiders: ["Partners & Advisors", "Core & Future Team"], + liquidity: ["Liquidity"], + publicSale: ["Public Sale"], + noncirculating: ["Treasury"], + }, +}; +export default cbl; From f2135b1961c2d0fd304135bd60373a4973e69eaa Mon Sep 17 00:00:00 2001 From: Jonathan Lodge Date: Mon, 4 Nov 2024 21:21:30 +0800 Subject: [PATCH 2/4] Corrected the Public Sale and Community tranches according to the latest figures. --- protocols/cbl.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/protocols/cbl.ts b/protocols/cbl.ts index 520bc52..5317c74 100644 --- a/protocols/cbl.ts +++ b/protocols/cbl.ts @@ -11,17 +11,17 @@ const cbl: Protocol = { // 26% of Total Allocation // 6 month cliff, followed by a 24-month daily linear vesting "Private Sale": manualStep(TGE + periodToSeconds.month * 7, periodToSeconds.month, 24, (TOTAL_SUPPLY * 0.26) / 24), - // 3.0% of Total Allocation + // 1.5% of Total Allocation // 30% on TGE, followed by a 6-month daily linear vesting "Public Sale": [ - manualCliff(TGE, TOTAL_SUPPLY * 0.03 * 0.3), - manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 6, (TOTAL_SUPPLY * 0.03 * 0.7) / 6), + manualCliff(TGE, TOTAL_SUPPLY * 0.015 * 0.3), + manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 6, (TOTAL_SUPPLY * 0.015 * 0.7) / 6), ], - // 30% of Total Allocation + // 31.5% of Total Allocation // 15% on TGE, followed by a 60-month daily linear vesting "Community Growth & Rewards": [ - manualCliff(TGE, TOTAL_SUPPLY * 0.3 * 0.15), - manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 60, (TOTAL_SUPPLY * 0.3 * 0.85) / 60), + manualCliff(TGE, TOTAL_SUPPLY * 0.315 * 0.15), + manualStep(TGE + periodToSeconds.month, periodToSeconds.month, 60, (TOTAL_SUPPLY * 0.315 * 0.85) / 60), ], // 20% of Total Allocation // 10% on TGE, followed by a 60-month daily linear vesting From d504e77f3880fe1e5b034954011f716587df8787 Mon Sep 17 00:00:00 2001 From: waynebruce0x Date: Tue, 5 Nov 2024 11:57:13 +0000 Subject: [PATCH 3/4] dbl meta --- protocols/cbl.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocols/cbl.ts b/protocols/cbl.ts index 5317c74..950de51 100644 --- a/protocols/cbl.ts +++ b/protocols/cbl.ts @@ -41,13 +41,14 @@ const cbl: Protocol = { meta: { sources: ["https://docs.credbull.io/docs/litepaper"], token: `${CHAIN}:${CBL_ADDRESS}`, - protocolIds: [], + protocolIds: ['4759'], }, categories: { - insiders: ["Partners & Advisors", "Core & Future Team"], + insiders: ["Partners & Advisors", "Core & Future Team", "Private Sale"], liquidity: ["Liquidity"], publicSale: ["Public Sale"], noncirculating: ["Treasury"], + farming: ["Community Growth & Rewards"] }, }; export default cbl; From 45d6ee7113252c7518bbd99f56ee08411ff5ecc2 Mon Sep 17 00:00:00 2001 From: Jonathan Lodge Date: Thu, 7 Nov 2024 18:08:07 +0800 Subject: [PATCH 4/4] Correct the TGE Time. --- protocols/cbl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/cbl.ts b/protocols/cbl.ts index 950de51..0e1524a 100644 --- a/protocols/cbl.ts +++ b/protocols/cbl.ts @@ -2,7 +2,7 @@ import { manualCliff, manualStep } from "../adapters/manual"; import { Protocol } from "../types/adapters"; import { periodToSeconds } from "../utils/time"; -const TGE = 1730984400; // 2024-11-07 13:00 UTC +const TGE = 1730973600; // 2024-11-07 10:00 UTC const TOTAL_SUPPLY = 1e9; // 1,000,000,000 const CBL_ADDRESS = "0xD6b3d81868770083307840F513A3491960b95cb6"; const CHAIN = "arbitrum";