@leather.io/models 0.52.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { YieldProviderKey, YieldProviderKeys } from './yield-provider.model';
1
+ import { StacksProtocolId, StacksProtocolIds } from '../protocols/stacks-protocol.model';
2
2
 
3
3
  export const YieldProductKeys = {
4
4
  bitflowAmmLp: 'bitflow-amm-lp',
@@ -32,29 +32,29 @@ export type YieldProductCategory =
32
32
  (typeof YieldProductCategories)[keyof typeof YieldProductCategories];
33
33
 
34
34
  export const YieldProductToProviderMap = {
35
- [YieldProductKeys.bitflowAmmLp]: YieldProviderKeys.bitflow,
36
- [YieldProductKeys.bitflowAmmStaking]: YieldProviderKeys.bitflow,
37
- [YieldProductKeys.zestBorrowMarket]: YieldProviderKeys.zest,
38
- [YieldProductKeys.graniteV1Earn]: YieldProviderKeys.granite,
39
- [YieldProductKeys.graniteV1Borrow]: YieldProviderKeys.granite,
40
- [YieldProductKeys.stackingDaoStstx]: YieldProviderKeys.stackingDao,
41
- [YieldProductKeys.stackingDaoStstxbtc]: YieldProviderKeys.stackingDao,
42
- [YieldProductKeys.stackingDaoPooledStacking]: YieldProviderKeys.stackingDao,
43
- [YieldProductKeys.lisaListx]: YieldProviderKeys.lisa,
44
- [YieldProductKeys.lisaLiquidStaking]: YieldProviderKeys.lisa,
45
- [YieldProductKeys.hermeticaUsdhStaking]: YieldProviderKeys.hermetica,
46
- [YieldProductKeys.velarAmmLp]: YieldProviderKeys.velar,
47
- [YieldProductKeys.velarPerps]: YieldProviderKeys.velar,
48
- [YieldProductKeys.velarAmmLpFarming]: YieldProviderKeys.velar,
49
- [YieldProductKeys.fastPoolPooledStacking]: YieldProviderKeys.fastPool,
50
- [YieldProductKeys.xversePooledStacking]: YieldProviderKeys.xverse,
35
+ [YieldProductKeys.bitflowAmmLp]: StacksProtocolIds.bitflow,
36
+ [YieldProductKeys.bitflowAmmStaking]: StacksProtocolIds.bitflow,
37
+ [YieldProductKeys.zestBorrowMarket]: StacksProtocolIds.zest,
38
+ [YieldProductKeys.graniteV1Earn]: StacksProtocolIds.granite,
39
+ [YieldProductKeys.graniteV1Borrow]: StacksProtocolIds.granite,
40
+ [YieldProductKeys.stackingDaoStstx]: StacksProtocolIds.stackingDao,
41
+ [YieldProductKeys.stackingDaoStstxbtc]: StacksProtocolIds.stackingDao,
42
+ [YieldProductKeys.stackingDaoPooledStacking]: StacksProtocolIds.stackingDao,
43
+ [YieldProductKeys.lisaListx]: StacksProtocolIds.alex,
44
+ [YieldProductKeys.lisaLiquidStaking]: StacksProtocolIds.alex,
45
+ [YieldProductKeys.hermeticaUsdhStaking]: StacksProtocolIds.hermetica,
46
+ [YieldProductKeys.velarAmmLp]: StacksProtocolIds.velar,
47
+ [YieldProductKeys.velarPerps]: StacksProtocolIds.velar,
48
+ [YieldProductKeys.velarAmmLpFarming]: StacksProtocolIds.velar,
49
+ [YieldProductKeys.fastPoolPooledStacking]: StacksProtocolIds.fastPool,
50
+ [YieldProductKeys.xversePooledStacking]: StacksProtocolIds.xverse,
51
51
  } as const;
52
52
 
53
53
  export type YieldProduct = BaseYieldProduct | PooledStackingYieldProduct;
54
54
 
55
55
  export interface BaseYieldProduct {
56
56
  readonly key: YieldProductKey;
57
- readonly provider: YieldProviderKey;
57
+ readonly provider: StacksProtocolId;
58
58
  readonly category: YieldProductCategory;
59
59
  readonly name: string;
60
60
  readonly url: string;
@@ -1,19 +0,0 @@
1
- export const YieldProviderKeys = {
2
- bitflow: 'bitflow',
3
- zest: 'zest',
4
- granite: 'granite',
5
- stackingDao: 'stackingdao',
6
- lisa: 'lisa',
7
- hermetica: 'hermetica',
8
- fastPool: 'fast-pool',
9
- xverse: 'xverse',
10
- velar: 'velar',
11
- } as const;
12
- export type YieldProviderKey = (typeof YieldProviderKeys)[keyof typeof YieldProviderKeys];
13
-
14
- export interface YieldProvider {
15
- readonly key: YieldProviderKey;
16
- readonly name: string;
17
- readonly logo: string;
18
- readonly url: string;
19
- }