Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ens adapter #75

Merged
merged 4 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions protocols/celestia.ts
Original file line number Diff line number Diff line change
@@ -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.day,
1095,
(qtyEcosystem * 0.75) / 1095,
), //
],
"Initial Core Contributors": [
manualCliff(start + periodToSeconds.year, qtyCORE * 0.33), // 33%
manualStep(
start + periodToSeconds.year,
periodToSeconds.day,
1095,
(qtyCORE * 0.67) / 1095,
), //
],
"Early Backers Seed": [
manualCliff(start + periodToSeconds.year, qtySEED * 0.33), // 33%
manualStep(
start + periodToSeconds.year,
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.day,
365,
(qtyAB * 0.67) / 365,
), // 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://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"],
publicSale: [],
airdrop: ["Public Allocation"],
farming: ["R&D & Ecosystem"]
},
};
export default celestia;
41 changes: 41 additions & 0 deletions protocols/ens.ts
Original file line number Diff line number Diff line change
@@ -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;