Skip to content

Commit

Permalink
Merge pull request #37 from stabilitydao/dev
Browse files Browse the repository at this point in the history
0.16.0: add re.al ecosystem; add TPF, IPF, SL, SS strategies; Issue helper; fixes
  • Loading branch information
a17 authored Oct 11, 2024
2 parents 18ceee8 + e6eb6bf commit 7c3e1be
Show file tree
Hide file tree
Showing 14 changed files with 378 additions and 14 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Comprehensive information about platform strategies for managing DeFi assets. In

* `strategies: {[shortId in StrategyShortId]:Strategy}`
* `strategyStateDescription: {[state in StrategyState]: string}`
* `baseStrategyContracts: {[baseStrategy in BaseStrategy]: string}`

#### Methods

Expand Down
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.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.15.3",
"version": "0.16.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand All @@ -21,7 +21,8 @@
"overview": "ts-node tools/overview.ts",
"overview-full": "ts-node tools/overview-full.ts",
"postbuild": "shx cp src/*.tokenlist.json out/",
"draw-chains": "ts-node tools/draw-chains.ts"
"draw-chains": "ts-node tools/draw-chains.ts",
"issue": "ts-node tools/issue.ts"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand Down
73 changes: 73 additions & 0 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const assets: Asset[] = [
addresses: {
"137": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
"8453": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"111188": "0x75d0cBF342060b14c2fC756fd6E717dFeb5B1B70"
},
symbol: "DAI",
description:
Expand Down Expand Up @@ -101,6 +102,78 @@ export const assets: Asset[] = [
website: "https://lido.fi",
color: "#00a3ff",
},
{
addresses: {
"111188": "0x90c6E93849E06EC7478ba24522329d14A5954Df4",
},
symbol: "WREETH",
description: 'Wrapped reETH (native gas token to the chain)',
website: "https://re.al",
color: "#ababab",
},
{
addresses: {
"111188": "0x83feDBc0B85c6e29B589aA6BdefB1Cc581935ECD",
},
symbol: "USTB",
description: 'The permissionless, cross-chain, rebasing stablecoin backed by T-Bills.',
website: "https://www.tangible.store/ustb",
color: "#339985",
},
{
addresses: {
"111188": "0xAEC9e50e3397f9ddC635C6c429C8C7eca418a143",
},
symbol: "arcUSD",
description: 'Arcana is a protocol built on re.al that captures the yield from a variety of delta-neutral trade strategies and distributes it in the form of a rebasing token that is soft-pegged to the dollar, arcUSD.',
website: "https://www.arcana.finance/",
color: "#f8f295",
},
{
addresses: {
"111188": "0xCE1581d7b4bA40176f0e219b2CaC30088Ad50C7A",
},
symbol: "PEARL",
description: 'Main utility token of Pearl DeX. ',
website: "https://www.pearl.exchange/",
color: "#2457ab",
},
{
addresses: {
"111188": "0x25ea98ac87A38142561eA70143fd44c4772A16b6",
},
symbol: "MORE",
description: 'Stack Finance is a borrowing and leverage platform that uses a variety of crypto native and real world asset tokens as collateral to borrow the stablecoin $MORE.',
website: "https://www.stackmore.xyz/",
color: "#d60d1d",
},
{
addresses: {
"111188": "0x4644066f535Ead0cde82D209dF78d94572fCbf14",
},
symbol: "RWA",
description: 'The RWA token is the governance token to the re.al ecosystem.',
website: "https://re.al",
color: "#ffffff",
},
{
addresses: {
"111188": "0x835d3E1C0aA079C6164AAd21DCb23E60eb71AF48",
},
symbol: "UKRE",
description: 'Real estate basket in Tangible',
website: "https://www.tangible.store/baskets/0x835d3E1C0aA079C6164AAd21DCb23E60eb71AF48",
color: "#8d8be1",
},
{
addresses: {
"111188": "0xB08F026f8a096E6d92eb5BcbE102c273A7a2d51C",
},
symbol: "CVR",
description: 'Caviar $CVR is a self-sustaining liquid-wrapper for locked tokens $vePEARL, the governance token of the Pearl Exchange. Initially developed by Tangible and now managed by the Pearl team.',
website: "https://www.pearl.exchange/caviar",
color: "#8d8be1",
},
]

export const getAsset = (chainId: string, tokenAddress: `0x${string}`): Asset|undefined => {
Expand Down
3 changes: 2 additions & 1 deletion src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,10 @@ export const chains: { [chainId: string]: Chain } = {
"111188": {
name: ChainName.REAL,
chainId: 111188,
status: ChainStatus.AWAITING_ISSUE_CREATION,
status: ChainStatus.AWAITING_DEVELOPER,
img: 'real.png',
multisig: '0x7B4388F4bD3A439E34a554EF67513112Bcd77Fba',
chainLibGithubId: 173,
},
"167000": {
name: ChainName.TAIKO,
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
getStrategyShortId,
strategyStateDescription,
getStrategiesTotals,
baseStrategyContracts, getStrategyProtocols,
} from "./strategies";
import {
integrations,
Expand Down Expand Up @@ -61,12 +62,14 @@ export {
almFactories,
getMerklStrategies,
getStrategyShortId,
getStrategyProtocols,
getIntegrationStatus,
getSupportedChainNames,
assets,
Asset,
getAsset,
strategyStateDescription,
baseStrategyContracts,
getChainsTotals,
getStrategiesTotals,
seeds,
Expand Down
39 changes: 36 additions & 3 deletions src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ export type DeFiOrganization = {

export type DeFiProtocol = {
name: string
img?: string // separate img for protocol
organization?: string // optimal org slug for usability
category: DefiCategory
chains: ChainName[],
chains: ChainName[]
strategies?: StrategyShortId[]
intermediaryStrategies?: StrategyShortId[]
adapters?: string[]
Expand Down Expand Up @@ -42,10 +44,11 @@ export enum DefiCategory {
ERC4626 = 'ERC-4626',
LSP = 'LSP',
INTERCHAIN = 'Interchain',
CDP = 'CDP',
}

export const integrations: { [org: string]: DeFiOrganization } = {
// oracle, cross-chain
// oracle
chainlink: {
name: 'ChainLink',
img: 'Chainlink.svg',
Expand Down Expand Up @@ -378,6 +381,35 @@ export const integrations: { [org: string]: DeFiOrganization } = {
defiLlama: 'agni-finance',
github: 'agni-protocol',
},
pearl: {
name: 'Pearl',
img: 'Pearl.png',
website: 'https://www.pearl.exchange/',
protocols: {
pearlV2: {
name: 'Pearl V2',
category: DefiCategory.AMM,
chains: [ChainName.REAL,],
strategies: [StrategyShortId.TPF, StrategyShortId.IPF,],
},
trident: {
name: 'Trident',
img: 'Trident.png',
category: DefiCategory.ALM,
chains: [ChainName.REAL,],
strategies: [StrategyShortId.TPF,],
},
stack: {
name: 'Stack More',
img: 'Stack.svg',
category: DefiCategory.CDP,
chains: [ChainName.REAL,],
strategies: [StrategyShortId.SL, StrategyShortId.SS,],
},
},
github: 'Pearl-Finance',
defiLlama: 'pearl-v2',
},
// ALM
gamma: {
name: 'Gamma',
Expand Down Expand Up @@ -454,8 +486,9 @@ export const integrations: { [org: string]: DeFiOrganization } = {
ChainName.BSC,
ChainName.CELO,
ChainName.SKALE_EUROPA,
ChainName.REAL,
],
strategies: [StrategyShortId.IQMF, StrategyShortId.IRMF],
strategies: [StrategyShortId.IQMF, StrategyShortId.IRMF, StrategyShortId.IPF,],
},
},
defiLlama: 'ichi',
Expand Down
81 changes: 79 additions & 2 deletions src/stability.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "Stability Token List",
"logoURI": "https://stability.farm/logo.svg",
"keywords": [],
"timestamp": "2024-06-28T00:00:00+00:00",
"timestamp": "2024-10-11T00:00:00+00:00",
"version": {
"major": 1,
"minor": 3,
"minor": 4,
"patch": 0
},
"tags": {
Expand Down Expand Up @@ -186,6 +186,83 @@
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/dai.jpg",
"tags": ["stablecoin", "bridged"]
},
{
"chainId": 111188,
"address": "0x25ea98ac87A38142561eA70143fd44c4772A16b6",
"symbol": "MORE",
"name": "MORE",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/MORE.png",
"tags": ["stablecoin"]
},
{
"chainId": 111188,
"address": "0x83feDBc0B85c6e29B589aA6BdefB1Cc581935ECD",
"symbol": "USTB",
"name": "US T-Bill",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/USTB.png",
"tags": ["stablecoin"]
},
{
"chainId": 111188,
"address": "0xAEC9e50e3397f9ddC635C6c429C8C7eca418a143",
"symbol": "arcUSD",
"name": "arcUSD",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/arcUSD.png",
"tags": ["stablecoin"]
},
{
"chainId": 111188,
"address": "0x90c6E93849E06EC7478ba24522329d14A5954Df4",
"symbol": "WREETH",
"name": "Wrapped Real Ether",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/WREETH.png",
"tags": ["wNative"]
},
{
"chainId": 111188,
"address": "0xCE1581d7b4bA40176f0e219b2CaC30088Ad50C7A",
"symbol": "PEARL",
"name": "Pearl",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/PEARL.png"
},
{
"chainId": 111188,
"address": "0x4644066f535Ead0cde82D209dF78d94572fCbf14",
"symbol": "RWA",
"name": "re.al",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/RWA.png"
},
{
"chainId": 111188,
"address": "0xB08F026f8a096E6d92eb5BcbE102c273A7a2d51C",
"symbol": "CVR",
"name": "CAVIAR",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/CVR.png"
},
{
"chainId": 111188,
"address": "0x835d3E1C0aA079C6164AAd21DCb23E60eb71AF48",
"symbol": "UKRE",
"name": "UK Real Estate",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/stabilitydao/.github/main/tokens/UKRE.png"
},
{
"chainId": 111188,
"address": "0x75d0cBF342060b14c2fC756fd6E717dFeb5B1B70",
"symbol": "DAI",
"name": "Dai Stablecoin",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/dai.jpg",
"tags": ["stablecoin", "bridged"]
}
]
}
Loading

0 comments on commit 7c3e1be

Please sign in to comment.