Skip to content

Commit

Permalink
Merge pull request #103 from stabilitydao/dev
Browse files Browse the repository at this point in the history
📦 0.21.3 collector
  • Loading branch information
a17 authored Nov 7, 2024
2 parents 6d50571 + 63fb3b7 commit 7f18157
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 42 deletions.
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.21.2",
"version": "0.21.3",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
107 changes: 68 additions & 39 deletions src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,45 @@ export const integrations: { [org: string]: DeFiOrganization } = {
defiLlama: "chainlink",
github: "smartcontractkit",
},
dia: {
name: "DIA",
img: "Diadata.svg",
website: "https://www.diadata.org/",
protocols: {
diadata: {
name: "Dia Data",
category: DefiCategory.ORACLE,
chains: [
ChainName.ARBITRUM,
ChainName.AURORA,
ChainName.AVALANCHE,
ChainName.BASE,
ChainName.BEVM,
ChainName.CELO,
ChainName.ETHEREUM,
ChainName.EVMOS,
ChainName.FANTOM,
ChainName.FUSE,
ChainName.LINEA,
ChainName.METIS,
ChainName.MOONBEAM,
ChainName.MOONRIVER,
ChainName.ZKSYNC,
ChainName.TELOS,
ChainName.OPTIMISM,
ChainName.POLYGON,
ChainName.POLYGON_ZKEVM,
ChainName.GNOSIS,
ChainName.BSC,
ChainName.BOBA,
ChainName.ASTAR_ZKEVM,
],
adapters: ["DiaAdapter"],
},
},
defiLlama: "dia",
github: "diadata-org",
},
// Rewarding
angle: {
name: "Angle",
Expand Down Expand Up @@ -766,6 +805,35 @@ export const integrations: { [org: string]: DeFiOrganization } = {
defiLlama: "aave",
github: "aave",
},
// leveraged lending
impermax: {
name: "Impermax",
img: "Impermax.svg",
website: "https://www.impermax.finance/",
protocols: {
impermax: {
name: "Impermax",
category: DefiCategory.LENDING,
chains: [
ChainName.ETHEREUM,
ChainName.BASE,
ChainName.OPTIMISM,
ChainName.POLYGON,
ChainName.ARBITRUM,
ChainName.AVALANCHE,
ChainName.SCROLL,
ChainName.FANTOM,
ChainName.MOONRIVER,
ChainName.ZKSYNC,
ChainName.MANTLE,
ChainName.REAL,
// canto
],
},
},
defiLlama: "impermax-finance",
github: "Impermax-Finance",
},
// Boost aggregator
convex: {
name: "Convex",
Expand Down Expand Up @@ -1206,45 +1274,6 @@ export const integrations: { [org: string]: DeFiOrganization } = {
},
defiLlama: "cytoswap",
},
dia: {
name: "DIA",
img: "Diadata.svg",
website: "https://www.diadata.org/",
protocols: {
diadata: {
name: "Dia Data",
category: DefiCategory.ORACLE,
chains: [
ChainName.ARBITRUM,
ChainName.AURORA,
ChainName.AVALANCHE,
ChainName.BASE,
ChainName.BEVM,
ChainName.CELO,
ChainName.ETHEREUM,
ChainName.EVMOS,
ChainName.FANTOM,
ChainName.FUSE,
ChainName.LINEA,
ChainName.METIS,
ChainName.MOONBEAM,
ChainName.MOONRIVER,
ChainName.ZKSYNC,
ChainName.TELOS,
ChainName.OPTIMISM,
ChainName.POLYGON,
ChainName.POLYGON_ZKEVM,
ChainName.GNOSIS,
ChainName.BSC,
ChainName.BOBA,
ChainName.ASTAR_ZKEVM,
],
adapters: ["DiaAdapter"],
},
},
defiLlama: "dia",
github: "diadata-org",
},
};

export const getIntegrationStatus = (p: DeFiProtocol): IntegrationStatus => {
Expand Down
33 changes: 32 additions & 1 deletion src/strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export const enum StrategyShortId {
IPF = "IPF",
SL = "SL",
SS = "SS",
PF = "PF",
IPLF = "IPLF",
}

export enum StrategyState {
Expand Down Expand Up @@ -346,7 +348,7 @@ export const strategies: { [shortId in StrategyShortId]: Strategy } = {
baseStrategies: [BaseStrategy.LEVERAGED_LENDING],
protocols: [`pearl:stack`],
description:
"Manage leveraged Stack CDP position with yield-bearing collateral asset. Use Swapper.",
"Manage leveraged Stack CDP position with yield-bearing collateral asset..",
},
[StrategyShortId.SS]: {
id: "Stack Staking",
Expand All @@ -359,6 +361,34 @@ export const strategies: { [shortId in StrategyShortId]: Strategy } = {
protocols: [`pearl:stack`],
description: "Stake $MORE on Stack",
},
[StrategyShortId.PF]: {
id: "Pearl Farm",
shortId: StrategyShortId.PF,
state: StrategyState.AWAITING,
contractGithubId: 180,
color: "#274BC4",
bgColor: "#0e1c48",
ammAdapter: "Solidly",
baseStrategies: [BaseStrategy.LP, BaseStrategy.FARMING],
protocols: [`pearl:pearlV2`],
description: "Earn Pearl LP rewards on stable and volatile AMMs",
},
[StrategyShortId.IPLF]: {
id: "Impermax Pearl Leverage Farm",
shortId: StrategyShortId.IPLF,
state: StrategyState.AWAITING,
contractGithubId: 181,
color: "#19A29B",
bgColor: "#000000",
ammAdapter: "Solidly",
baseStrategies: [
BaseStrategy.LEVERAGED_LENDING,
BaseStrategy.LP,
BaseStrategy.FARMING,
],
protocols: [`impermax:impermax`, `pearl:pearlV2`],
description: "Earn IBEX by leveraged lending position of Pearl LP",
},
};

export const getMerklStrategies = (): string[] => {
Expand Down Expand Up @@ -437,6 +467,7 @@ export const getStrategyProtocols = (
integrations[orgName].protocols[protocolName]
) {
const _protocol = integrations[orgName].protocols[protocolName];
_protocol.organization = orgName;
r.push(_protocol);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/draw-integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function main() {
const p = `${tmpDir}/${organization.img}`;
if (!fs.existsSync(p)) {
await downloadFile(
`https://raw.githubusercontent.com/stabilitydao/.github/renzo-dev/assets/${organization.img}`,
`https://raw.githubusercontent.com/stabilitydao/.github/main/assets/${organization.img}`,
p,
);
}
Expand Down

0 comments on commit 7f18157

Please sign in to comment.