diff --git a/integrations.png b/integrations.png index 5397e5e..61de511 100644 Binary files a/integrations.png and b/integrations.png differ diff --git a/package.json b/package.json index dd4186d..e20ce03 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/integrations.ts b/src/integrations.ts index c13b9c0..b9fe6bf 100644 --- a/src/integrations.ts +++ b/src/integrations.ts @@ -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", @@ -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", @@ -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 => { diff --git a/src/strategies.ts b/src/strategies.ts index 7e7affd..16fa610 100644 --- a/src/strategies.ts +++ b/src/strategies.ts @@ -40,6 +40,8 @@ export const enum StrategyShortId { IPF = "IPF", SL = "SL", SS = "SS", + PF = "PF", + IPLF = "IPLF", } export enum StrategyState { @@ -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", @@ -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[] => { @@ -437,6 +467,7 @@ export const getStrategyProtocols = ( integrations[orgName].protocols[protocolName] ) { const _protocol = integrations[orgName].protocols[protocolName]; + _protocol.organization = orgName; r.push(_protocol); } } diff --git a/tools/draw-integrations.ts b/tools/draw-integrations.ts index b44d18e..1eeadbc 100644 --- a/tools/draw-integrations.ts +++ b/tools/draw-integrations.ts @@ -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, ); }