@defisaver/positions-sdk 2.1.168-stable-pair-dev → 2.1.169-custom-fetching-dev

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.
@@ -124,6 +124,7 @@ export enum MorphoBlueVersions {
124
124
  MorphoBlueUSDeUSDC_915_Base = 'morphoblueusdeusdc_915_base', // USDe/USDC 0.915
125
125
  MorphoBlueCbEthUSDC_770_Base = 'morphobluecbethusdc_770_base', // cbETH/USDC 0.77
126
126
  MorphoBlueCbXRPUSDC_625_Base = 'morphobluecbxrpusdc_625_base', // cbXRP/USDC 0.625
127
+ MorphoBlueCbHYPEUSDC_625_Base = 'morphobluecbhypeusdc_625_base', // cbHYPE/USDC 0.625
127
128
 
128
129
  // ARBITRUM
129
130
  MorphoBlueSyrupUSDCUSDC_915_Arb = 'morphobluesyrupusdcusdc_915_arb', // syrupUSDC/USDC
@@ -67,6 +67,43 @@ export interface PortfolioPositionsDataForAddress {
67
67
  export interface PortfolioPositionsData {
68
68
  [key: EthAddress]: PortfolioPositionsDataForAddress;
69
69
  }
70
+ export enum PortfolioProtocol {
71
+ AaveV2 = 'aaveV2',
72
+ AaveV3 = 'aaveV3',
73
+ AaveV4 = 'aaveV4',
74
+ CompoundV2 = 'compoundV2',
75
+ CompoundV3 = 'compoundV3',
76
+ Spark = 'spark',
77
+ MorphoBlue = 'morphoBlue',
78
+ MorphoMidnight = 'morphoMidnight',
79
+ CrvUsd = 'crvUsd',
80
+ LlamaLend = 'llamaLend',
81
+ Maker = 'maker',
82
+ Liquity = 'liquity',
83
+ LiquityV2 = 'liquityV2',
84
+ Fluid = 'fluid',
85
+ }
86
+
87
+ export interface CustomDeFiDataOptions {
88
+ /** Defaults to every protocol. */
89
+ protocols?: PortfolioProtocol[];
90
+ fetchStaking?: boolean;
91
+ fetchRewards?: boolean;
92
+ /** Keep Aave V3 / Spark positions with no supply so the eMode category is available. */
93
+ returnEmptyEModePositions?: boolean;
94
+ fetchFluidMarkets?: boolean;
95
+ isSim?: boolean;
96
+ /** viem multicall calldata cap in bytes; defaults to 250k (2k when isSim). */
97
+ batchSize?: number;
98
+ }
99
+
100
+ export interface CustomDeFiData {
101
+ positions: PortfolioPositionsData;
102
+ stakingPositions: Record<string, any>;
103
+ rewardsData: Record<string, any>;
104
+ markets: PortfolioMarketsData;
105
+ }
106
+
70
107
  export interface PortfolioMarketsData {
71
108
  morphoMarketsData: Record<string, MorphoBlueMarketInfo>;
72
109
  morphoMidnightMarketsData: Record<string, MorphoMidnightMarketInfo>;