@defisaver/positions-sdk 2.1.17 → 2.1.19-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.
@@ -60,7 +60,11 @@ const getApyFromDfsApi = async (asset: string, network: number = NetworkNumber.E
60
60
  }
61
61
  };
62
62
 
63
- export const STAKING_ASSETS = ['cbETH', 'wstETH', 'cbETH', 'rETH', 'sDAI', 'weETH', 'sUSDe', 'osETH', 'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep', 'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT'];
63
+ export const STAKING_ASSETS = [
64
+ 'cbETH', 'wstETH', 'cbETH', 'rETH', 'sDAI', 'weETH', 'sUSDe', 'osETH',
65
+ 'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep',
66
+ 'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'syrupUSDC',
67
+ ];
64
68
 
65
69
  export const getStakingApy = memoize(async (asset: string, network: number = NetworkNumber.Eth) => {
66
70
  try {
@@ -90,6 +94,7 @@ export const getStakingApy = memoize(async (asset: string, network: number = Net
90
94
  if (asset === 'PT USDe Jan') return await getApyFromDfsApi('PT USDe Jan', network);
91
95
  if (asset === 'PT sUSDe Jan') return await getApyFromDfsApi('PT sUSDe Jan', network);
92
96
  if (asset === 'syrupUSDT') return await getApyFromDfsApi('syrupUSDT');
97
+ if (asset === 'syrupUSDC') return await getApyFromDfsApi('syrupUSDC');
93
98
  } catch (e) {
94
99
  console.error(`Failed to fetch APY for ${asset}`);
95
100
  }
@@ -12,39 +12,36 @@ export enum MorphoBlueVersions {
12
12
  MorphoBlueWstEthUSDT = 'morphobluewstethusdt', // wstETH/USDT
13
13
  MorphoBlueWstEthUSDA_Exchange_Rate = 'morphobluewstethusda_exchange_rate', // wstETH/USDA
14
14
  MorphoBlueWstEthPYUSD = 'morphobluwstethpyusd', // wstETH/PYUSD
15
- MorphoBlueREthEth_945 = 'morphoblueretheth_945', // rETH/ETH
16
15
  MorphoBlueWBTCPYUSD = 'morphobluewbtcpyusd', // WBTC/PYUSD
17
16
  MorphoBlueWBTCEth = 'morphobluewbtceth', // WBTC/ETH
18
17
  MorphoBlueUSDeUSDT = 'morphoblueusdeusdt', // USDe/USDT
19
18
  MorphoBlueSUSDeUSDT = 'morphobluesusdeusdt', // sUSDe/USDT
20
- MorphoBlueSDAIEth = 'morphobluesdaieth', // sDAI/ETH
21
19
  MorphoBlueMKRUSDC = 'morphobluemkrusdc', // MKR/USDC
22
20
  MorphoBlueTBTCUSDC = 'morphobluetbtcusdc', // tBTC/USDC
23
21
  MorphoBlueCbBTCEth_915 = 'morphobluecbbtceth', // cbBTC/Eth
24
22
  MorphoBlueCbBTCUSDC_860 = 'morphobluecbbtcusdc', // cbBTC/USDC
25
23
  MorphoBlueSUSDeUSDC_915 = 'morphobluesusdeusdc_915', // sUSDe/USDC
26
24
  MorphoBlueLBTCWBTC_945 = 'morphobluelbtcwbtc_945', // LBTC/WBTC
25
+ MorphoBlueLBTCUSDC_860 = 'morphobluelbtcusdc_860', // LBTC/USDC
26
+ MorphoBlueLBTCCbBTC_945 = 'morphobluelbtccbbtc_945', // LBTC/cbBTC
27
27
  MorphoBlueUSRUSDC_915 = 'morphoblueusrusdc_915', // USR/USDC
28
+ MorphoBlueSyrupUSDCUSDC_915 = 'morphobluesyrupusdcusdc_915', // syrupUSDC/USDC
28
29
  // ezETH/ETH
29
30
  MorphoBlueEzEthEth_860 = 'morphoblueezetheth_860',
30
31
  MorphoBlueEzEthEth_945 = 'morphoblueezetheth_945',
31
32
  // weETH/ETH
32
- MorphoBlueWeEthEth_860 = 'morphoblueweetheth_860',
33
33
  MorphoBlueWeEthEth_945 = 'morphoblueweetheth_945',
34
34
  // wstETH/WETH
35
35
  MorphoBlueWstEthEth_945 = 'morphobluewstetheth_945',
36
36
  MorphoBlueWstEthEth_945_Exchange_Rate = 'morphobluewstetheth_945_exchange_rate',
37
37
  MorphoBlueWstEthEth_965_Exchange_Rate = 'morphobluewstetheth_965_exchange_rate',
38
38
  // sUSDe/DAI
39
- MorphoBlueSUSDeDAI_770 = 'morphobluesusdedai_770',
40
39
  MorphoBlueSUSDeDAI_860 = 'morphobluesusdedai_860',
41
40
  MorphoBlueSUSDeDAI_915 = 'morphobluesusdedai_915',
42
41
  MorphoBlueSUSDeDAI_945 = 'morphobluesusdedai_945',
43
42
  // USDe/DAI
44
- MorphoBlueUSDeDAI_770 = 'morphoblueusdedai_770',
45
43
  MorphoBlueUSDeDAI_860 = 'morphoblueusdedai_860',
46
44
  MorphoBlueUSDeDAI_915 = 'morphoblueusdedai_915',
47
- MorphoBlueUSDeDAI_945 = 'morphoblueusdedai_945',
48
45
 
49
46
  // BASE
50
47
  MorphoBlueCbEthUSDC_860_Base = 'morphobluecbethusdc_860_base',
@@ -64,6 +61,7 @@ export enum MorphoBlueVersions {
64
61
  MorphoBlueLBTCCbBTC_945_Base = 'morphobluelbtccbbtc_945_base', // LBTC/cbBTC
65
62
  MorphoBlueWstEthEURC_860_Base = 'morphobluewstetheurc_860_base', // wstETH/EURC
66
63
  MorphoBlueCbBTCEURC_860_Base = 'morphobluecbbtceurc_860_base', // cbBTC/EURC
64
+ MorphoBlueWETHEURC_860_Base = 'morphobluewetheurc_860_base', // WETH/EURC
67
65
  }
68
66
 
69
67
  export enum MorphoBlueOracleType {
package/CLAUDE.md DELETED
@@ -1,32 +0,0 @@
1
- # DeFiSaver Positions SDK
2
-
3
- TypeScript SDK for DeFi positions tracking and management.
4
-
5
- ## Commands
6
-
7
- ```bash
8
- # Development
9
- npm run dev # Watch mode compilation
10
- npm run build # Lint and build both CJS and ESM
11
- npm run build:cjs # Build CommonJS
12
- npm run build:esm # Build ES modules
13
-
14
- # Linting
15
- npm run lint # Lint and fix
16
- npm run lint-check # Lint without fixing
17
-
18
- # Testing
19
- npm run test # Run all tests
20
- npm run test-single # Run single test (use --name=filename)
21
- npm run test:debugger # Run tests with debugger
22
-
23
- # Versioning
24
- npm run version-bump # Commit and bump patch version
25
- ```
26
-
27
- ## Project Structure
28
-
29
- - `src/` - TypeScript source code
30
- - `tests/` - Test files
31
- - `esm/` - ES module build output
32
- - `cjs/` - CommonJS build output