Skip to content

Commit

Permalink
apwine
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Apr 19, 2024
1 parent facef25 commit 6342980
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 4 deletions.
9 changes: 7 additions & 2 deletions adapters/balance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ export async function balance(
block: Number(block),
chain,
decimals,
}).catch((r) => {
r;
}).then((r: any) => {
if (r.includes(null))
throw new Error(`balance call failed for ${adapter}`);
chainData[block].result = r.reduce(
(p: number, c: any) => Number(p) + Number(c),
0,
);
})
: await multiCall({
calls: owners.map((o: string) => ({ target, params: [o] })),
Expand Down
77 changes: 77 additions & 0 deletions protocols/apwine.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { Protocol } from "../types/adapters";
import { manualCliff, manualLinear, manualLog } from "../adapters/manual";
import { periodToSeconds } from "../utils/time";
import { balance, latest } from "../adapters/balance";

const total = 5e7;
const start = 1621209600;
const token = "0x4104b135DBC9609Fc1A9490E61369036497660c8";
const chain = "ethereum";

const apwine: Protocol = {
Team: manualLinear(start, start + periodToSeconds.years(4), total * 0.28056),
Advisors: manualLinear(
start,
start + periodToSeconds.years(4),
total * 0.0068,
),
"Seed & Pre-seed": manualLinear(
start,
start + periodToSeconds.years(2),
total * 0.08264,
),
Bootstrap: manualCliff(start, total * 0.07),
DAO: () =>
balance(
["0xDbbfc051D200438dd5847b093B22484B842de9E7"],
token,
chain,
"apwine",
1621684800,
),
documented: {
replaces: ["DAO"],
Airdrop: [manualCliff(1639702800, total * 0.0118)],
"Liquidity Incentives": [
manualLog(
start,
start + periodToSeconds.years(7),
total * 0.48,
periodToSeconds.month,
2.718,
true,
),
],
ecosystem: manualLinear(
start,
start + periodToSeconds.years(7),
total * 0.0682,
),
},
meta: {
notes: [
"It has been assumed that Advisors are on the same vesting schedule as the team.",
],
sources: [
"https://medium.com/apwine/apwine-tokenomics-50e0db1cc33d",
"https://medium.com/apwine/apwine-genesis-airdrop-and-apw-locking-749447817687",
],
token: `${chain}:${token}`,
protocolIds: ["1109"],
incompleteSections: [
{
lastRecord: () => latest("apwine", 1621684800),
key: "DAO",
allocation: total * 0.56,
},
],
},
categories: {
publicSale: ["Bootstrap"],
farming: ["Liquidity Incentives"],
airdrop: ["Airdrop"],
insiders: ["Seed & Pre-seed", "Advisors", "Team"],
noncirculating: ["Ecosystem"],
},
};
export default apwine;
4 changes: 2 additions & 2 deletions protocols/dymension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const token =
"ibc/9A76CDF0CBCEF37923F32518FA15E5DC92B9F56128292BC4D63C4AEA76CBB110";
const chain = "cosmos";

const apecoin: Protocol = {
const dymension: Protocol = {
"Genesis Rolldrop": manualCliff(start, total * 0.08),
"Ecosystem & R&D": [
manualCliff(start, (total * 0.2) / 3),
Expand Down Expand Up @@ -53,4 +53,4 @@ const apecoin: Protocol = {
insiders: ["Backers", "Core Contributors"],
},
};
export default apecoin;
export default dymension;

0 comments on commit 6342980

Please sign in to comment.