Skip to content

Commit

Permalink
Merge pull request #117 from stabilitydao/dev
Browse files Browse the repository at this point in the history
📦 0.23.0 collector
  • Loading branch information
a17 authored Dec 4, 2024
2 parents 41e736d + a0c4ea1 commit 3033f71
Show file tree
Hide file tree
Showing 9 changed files with 568 additions and 294 deletions.
Binary file modified chains.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified integrations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.22.0",
"version": "0.23.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
29 changes: 26 additions & 3 deletions src/api.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Types of ApiService v4.0.0 from 21.10.2024
// Types of ApiService v4.3.3 from 26.11.2024

//#region ===== Main reply | GET / =====

Expand All @@ -11,7 +11,6 @@ export interface ApiMainReply {
vaults: Vaults;
underlyings: Underlyings;
assetPrices: AssetPrices;
leaderboard: User[]; // deprecated since v3.3.0
leaderboards: Leaderboards;
error?: string;
}
Expand Down Expand Up @@ -82,6 +81,7 @@ export type Vault = {
strategy?: `0x${string}`;
underlying?: `0x${string}`;
underlyingSymbol?: string;
underlyingDecimals?: number;
lastHardWork?: number;
status?: string;
strategySpecific?: string;
Expand All @@ -93,12 +93,33 @@ export type Vault = {
assetsAmounts?: string[];
assetsPricesOnCreation?: string[];
assetsPricesLast?: string[];
income?: {
aprLatest: string;
apr24h: string;
aprWeek: string;
// aprLifetime: string;
};
vsHold?: {
aprLatest: string;
aprAssetsLatest: string[];
apr24h: string;
aprAssets24h: string[];
aprWeek: string;
aprAssetsWeek: string[];
aprLifetime: string;
aprAssetsLifetime: string[];
lifetime: string;
lifetimeAssets: string[];
};
// deprecated since 4.3.0
apr?: {
incomeLatest: string;
income24h: string;
incomeWeek: string;
vsHoldLifetime: string;
vsHoldAssetsLifetime: string[];
vsHoldLatest: string;
vsHoldAssetsLatest: string[];
};
created?: number;
hardWorkOnDeposit?: boolean;
Expand Down Expand Up @@ -226,6 +247,7 @@ export interface PlatformDataFull extends PlatformDataPartial {
//#region ===== Swap by agg | GET /swap/:chainId/:src/:dst/:amountIn =====

export type ApiAggSwapData = {
agg: string;
src: string;
dst: string;
amountIn: string;
Expand Down Expand Up @@ -326,7 +348,8 @@ export interface ApiVerifyIntractReply {
data: {
// required, whether success or error
result: true | false; // bool, the user has done the task.
value: number; // earned USD
metric: number; // earned USD
metricDataType: "DOUBLE";
};
}

Expand Down
14 changes: 10 additions & 4 deletions src/contests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ export const contests: { [contestId: string]: YieldContest } = {
name: "Yield Contest #4",
start: 1733356800, // Thu, 05 Dec 2024 00:00:00 GMT
end: 1734566399, // Wed, 18 Dec 2024 23:59:59 GMT
minEarn: 0.1,
minEarn: 0.05,
rewards: [
{
type: RewardType.POINTS,
winners: 50,
winnerReward: 150,
winnerReward: 130,
},
// 200 USDT
/*{
Expand Down Expand Up @@ -190,8 +190,14 @@ export const contests: { [contestId: string]: YieldContest } = {
name: "Yield Contest #5",
start: 1734566400, // Thu, 19 Dec 2024 00:00:00 GMT
end: 1735775999, // Wed, 01 Jan 2025 23:59:59 GMT
minEarn: "TBA",
rewards: "TBA",
minEarn: 0.1,
rewards: [
{
type: RewardType.POINTS,
winners: 50,
winnerReward: 200,
},
],
},
y6: {
// 02 Jan 2025 - 15 Jan 2025
Expand Down
Loading

0 comments on commit 3033f71

Please sign in to comment.