Skip to content

Commit

Permalink
0.2.0: Base deployment; baseswap, a51; CBMF, ABMF; fix overview
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Jun 7, 2024
1 parent 5b8db15 commit ee383fe
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 7 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.1.3",
"version": "0.2.0",
"description": "Stability Integration Pack",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
10 changes: 10 additions & 0 deletions src/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ export const deployments: {[chainId:string]:CoreContracts} = {
strategyLogic: "0xD16b60E39284190D9201f0eaD42c4674C310e905",
zap: "0xEA3fABD8cC14705d7E66D1833a547D31882aEA9b",
},
"8453": {
platform: "0x7eAeE5CfF17F7765d89F4A46b484256929C62312",
factory: "0xe01E62dAe952501e884624423132e50E7B77Ba3c",
priceReader: "0x41408b3e0f279634E3cd59E2D76EF6b149d6D418",
swapper: "0x67e983b3B9f55A1eaA259D58E425e418f3900872",
hardWorker: "0x2FfeB278BB1Fb9f3B48619AbaBe955526942ac8c",
vaultManager: "0x2ba8C6A519CEDB6d1C35cEb14E8642625E91F77C",
strategyLogic: "0xbe491A023eA61B4b027ed0f2f2400748113797b1",
zap: "0x00700766b0cA613D719A01eea6234eeE77592e15",
},
}
42 changes: 41 additions & 1 deletion src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,21 @@ export const integrations: { [org: string]: DeFiOrganization } = {
defiLlama: 'gyroscope-protocol',
github: 'gyrostable',
},
baseswap: {
status: IntegrationStatus.ROADMAP,
name: 'BaseSwap',
website: 'https://baseswap.fi',
protocols: {
baseswap: {
name: 'BaseSwap',
category: DefiCategory.AMM,
networks: [NetworkId.BASE,],
strategies: [StrategyShortId.ABMF, StrategyShortId.CBMF],
adapters: ['UniswapV3Adapter',],
},
},
defiLlama: 'baseswap',
},
// ALM
gamma: {
status: IntegrationStatus.LIVE,
Expand Down Expand Up @@ -395,12 +410,37 @@ export const integrations: { [org: string]: DeFiOrganization } = {
NetworkId.SCROLL,
NetworkId.LINEA,
],
strategies: [StrategyShortId.CUMF],
strategies: [StrategyShortId.CUMF, StrategyShortId.CBMF,],
},
},
defiLlama: 'charm-finance',
github: 'charmfinance',
},
a51: {
status: IntegrationStatus.ROADMAP,
name: 'A51',
website: 'https://a51.finance',
protocols: {
a51: {
name: 'A51 Finance',
category: DefiCategory.ALM,
networks: [
NetworkId.ARBITRUM,
NetworkId.OPTIMISM,
NetworkId.BASE,
NetworkId.POLYGON,
NetworkId.BLAST,
NetworkId.SCROLL,
NetworkId.LINEA,
NetworkId.POLYGON_ZKEVM,
NetworkId.MANTA,
],
strategies: [StrategyShortId.ABMF],
},
},
defiLlama: 'a51-finance',
github: 'a51finance',
},
// Lending
compound: {
status: IntegrationStatus.LIVE,
Expand Down
4 changes: 2 additions & 2 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const networks: {[chainId: string]: Network} = {
"8453": {
id: NetworkId.BASE,
chainId: 8453,
status: IntegrationStatus.DEVELOPMENT,
status: IntegrationStatus.LIVE,
},
"9001": {
id: NetworkId.EVMOS,
Expand All @@ -181,7 +181,7 @@ export const networks: {[chainId: string]: Network} = {
"42161": {
id: NetworkId.ARBITRUM,
chainId: 42161,
status: IntegrationStatus.ROADMAP,
status: IntegrationStatus.DEVELOPMENT,
},
"42220": {
id: NetworkId.CELO,
Expand Down
19 changes: 18 additions & 1 deletion src/strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export enum StrategyShortId {
AS1BLS = 'AS1BLS',
GUMF = 'GUMF',
CUMF = 'CUMF',
CBMF = 'CBMF',
ABMF = 'ABMF',
}

export enum StrategyState {
Expand Down Expand Up @@ -155,7 +157,6 @@ export const strategies: {[shortId in StrategyShortId]?:Strategy} = {
color: "#07a658",
bgColor: "#1a024d",
},

[StrategyShortId.GUMF]: {
id: 'Gamma UniswapV3 Merkl Farm',
shortId: StrategyShortId.GUMF,
Expand All @@ -172,4 +173,20 @@ export const strategies: {[shortId in StrategyShortId]?:Strategy} = {
color: "#ff2299",
bgColor: "#000000",
},
[StrategyShortId.CBMF]: {
id: 'Charm BaseSwap Merkl Farm',
shortId: StrategyShortId.CBMF,
state: StrategyState.PROPOSED,
contractGithubId: 148,
color: "#2238ff",
bgColor: "#000000",
},
[StrategyShortId.ABMF]: {
id: 'A51 BaseSwap Merkl Farm',
shortId: StrategyShortId.ABMF,
state: StrategyState.PROPOSED,
contractGithubId: 147,
color: "#e74c3c",
bgColor: "#000000",
},
};
4 changes: 2 additions & 2 deletions tools/overview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {integrations, networks, strategies, deployments} from "../src";
import {StrategyShortId} from "../src";

console.log('== Stability Integration Pack ======')
console.log('== Stability Integration Pack ==')
console.log('')
console.log(`=== Deployments (${Object.keys(deployments).length}) ===`)
console.log(`${Object.keys(deployments).map(chainId => `Platform on ${networks[chainId].id} [${chainId}]: ${deployments[chainId].platform}`)}`)
console.log(`${Object.keys(deployments).map(chainId => `Platform on ${networks[chainId].id} [${chainId}]: ${deployments[chainId].platform}`).join("\n")}`)
console.log('')
console.log(`=== Strategies: ${Object.keys(strategies).length} ===`)
for (let strategyShortId in StrategyShortId) {
Expand Down

0 comments on commit ee383fe

Please sign in to comment.