Skip to content

Commit

Permalink
Merge pull request #200 from stabilitydao/dev
Browse files Browse the repository at this point in the history
0.28.0 collector
  • Loading branch information
a17 authored Jan 26, 2025
2 parents 1f7382e + 42e7bc6 commit 6068108
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 18 deletions.
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.27.3",
"version": "0.28.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,16 @@ export const assets: Asset[] = [
website: "https://www.sdog.io/",
color: "#e0e0e0",
},
{
addresses: {
"146": "0xb1e25689D55734FD3ffFc939c4C3Eb52DFf8A794",
},
symbol: "OS",
description:
"Hypersonic liquid staking. Permissionless Money Lego. Ideal for stacking yield. Rebasing token.",
website: "https://www.originprotocol.com/",
color: "#1a82ff",
},
];

export const getAsset = (
Expand Down
18 changes: 11 additions & 7 deletions src/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export type Deployment = {
periphery: {
frontend: `0x${string}`;
};
tokenomics: {
merkleDistributor?: `0x${string}`;
gem1?: `0x${string}`;
};
subgraph: string;
};

Expand All @@ -30,6 +34,7 @@ export const deployments: { [chainId: string]: Deployment } = {
periphery: {
frontend: "0xa9f5593e6a809a24fb41d1d854a577a8bf507e28",
},
tokenomics: {},
subgraph:
"https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/7WgM7jRzoW7yiJCE8DMEwCxtN3KLisYrVVShuAL2Kz4N",
},
Expand All @@ -47,14 +52,11 @@ export const deployments: { [chainId: string]: Deployment } = {
periphery: {
frontend: "0x15487495cce9210795f9C2E0e1A7238E336dFc32",
},
tokenomics: {
merkleDistributor: "0x0391aBDCFaB86947d93f9dd032955733B639416b",
gem1: "0x9A08cD5691E009cC72E2A4d8e7F2e6EE14E96d6d",
},
subgraph:
//"https://gateway.thegraph.com/api/[api-key]/subgraphs/id/CGkgsqaECPXXvgLySMMyzXTQh3v1zqqGTa1uRf5AbpZx",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.16/gn",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.17/gn",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.18/gn",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.19/gn",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.20/gn",
//"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.21/gn",
"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-sonic/0.0.23/gn",
},
"8453": {
Expand All @@ -71,6 +73,7 @@ export const deployments: { [chainId: string]: Deployment } = {
periphery: {
frontend: "0x995c3bdee2830c7f96d4caa0c36f7b7b8ec60127",
},
tokenomics: {},
subgraph:
"https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/FRK5vEJXX9w5Pt3nqeqGRX5s7k29AWCb7aXTfDwT6S8j",
},
Expand All @@ -88,6 +91,7 @@ export const deployments: { [chainId: string]: Deployment } = {
periphery: {
frontend: "0xfd1361E0565b01B85d3c1511FEf7545D6A84d93a",
},
tokenomics: {},
subgraph:
"https://api.goldsky.com/api/public/project_cm2v16o5ct0ql01vr3m5o0vt2/subgraphs/stability-subgraph/0.0.13/gn",
},
Expand Down
9 changes: 3 additions & 6 deletions src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export const integrations: { [org: string]: DeFiOrganization } = {
ChainName.LINEA,
ChainName.BLAST,
ChainName.IMMUTABLE_ZKEVM,
ChainName.SONIC,
],
strategies: [
StrategyShortId.QSMF,
Expand Down Expand Up @@ -309,6 +310,7 @@ export const integrations: { [org: string]: DeFiOrganization } = {
ChainName.AVALANCHE,
ChainName.CELO,
ChainName.BLAST,
ChainName.SONIC,
],
strategies: [StrategyShortId.CUMF, StrategyShortId.GUMF],
adapters: ["UniswapV3Adapter"],
Expand Down Expand Up @@ -1339,12 +1341,7 @@ export const integrations: { [org: string]: DeFiOrganization } = {
yearnV3: {
name: "Yearn V3",
category: DefiCategory.ERC4626,
chains: [
ChainName.ETHEREUM,
ChainName.ARBITRUM,
ChainName.POLYGON,
ChainName.SONIC,
],
chains: [ChainName.ETHEREUM, ChainName.ARBITRUM, ChainName.POLYGON],
strategies: [StrategyShortId.Y],
},
},
Expand Down
14 changes: 11 additions & 3 deletions src/stability.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "Stability Token List",
"logoURI": "https://stability.farm/logo.svg",
"keywords": [],
"timestamp": "2025-01-23T00:00:00+00:00",
"timestamp": "2025-01-26T00:00:00+00:00",
"version": {
"major": 1,
"minor": 14,
"patch": 3
"minor": 15,
"patch": 0
},
"tags": {
"stablecoin": {
Expand Down Expand Up @@ -915,6 +915,14 @@
"name": "sDOG",
"decimals": 18,
"logoURI": "https://cdn.jsdelivr.net/gh/unified-defi/equalizer-tokens@latest/sonic/tokens/128x128/0x50bc6e1dff8039a4b967c1bf507ba5ea13fa18b6.png"
},
{
"chainId": 146,
"address": "0xb1e25689D55734FD3ffFc939c4C3Eb52DFf8A794",
"symbol": "OS",
"name": "Origin Sonic",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/os.png"
}
]
}
17 changes: 16 additions & 1 deletion src/strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const enum StrategyShortId {
SF = "SF",
IEF = "IEF",
GEF = "GEF",
ASF = "ASF",
}

export enum StrategyState {
Expand All @@ -69,6 +70,7 @@ export enum BaseStrategy {
MERKL = "Merkl",
ERC4626 = "ERC4626",
LEVERAGED_LENDING = "Leveraged Lending",
ALM = "ALM",
}

export const strategyStateDescription: { [state in StrategyState]: string } = {
Expand All @@ -91,7 +93,8 @@ export const baseStrategyContracts: { [baseStrategy in BaseStrategy]: string } =
[BaseStrategy.FARMING]: "FarmingStrategyBase",
[BaseStrategy.MERKL]: "MerklStrategyBase",
[BaseStrategy.ERC4626]: "ERC4626StrategyBase",
[BaseStrategy.LEVERAGED_LENDING]: "LeveragedLending",
[BaseStrategy.LEVERAGED_LENDING]: "LeveragedLendingStrategyBase",
[BaseStrategy.ALM]: "ALMStrategyBase",
};

export const strategies: { [shortId in StrategyShortId]: Strategy } = {
Expand Down Expand Up @@ -505,6 +508,18 @@ export const strategies: { [shortId in StrategyShortId]: Strategy } = {
protocols: ["gamma:gamma", "equalizer:equalizer"],
description: "Earn Equalizer farm rewards by Gamma ALM",
},
[StrategyShortId.ASF]: {
id: "ALM Shadow Farm",
shortId: StrategyShortId.ASF,
state: StrategyState.AWAITING,
contractGithubId: 213,
color: "#411fa8",
bgColor: "#000000",
ammAdapter: "UniswapV3",
baseStrategies: [BaseStrategy.ALM, BaseStrategy.FARMING],
protocols: ["shadow:shadow"],
description: "Earn Shadow gauge rewards by Stability ALM",
},
};

export const getMerklStrategies = (): string[] => {
Expand Down

0 comments on commit 6068108

Please sign in to comment.