File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module.exports = {
7
7
8
8
chains . forEach ( chain => {
9
9
module . exports [ chain ] = {
10
- tvl : getTvlFunction ( 'strategy3' , true )
10
+ // rest api type:: StrategyType3
11
+ tvl : getTvlFunction ( 'StrategyType3' , true )
11
12
}
12
13
} )
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ const abi = {
6
6
getBalance : "function getBalance(address) view returns (uint256)"
7
7
}
8
8
9
-
9
+ // The desyn asset arrangement needs to be requested via the rest api form
10
10
async function getInfoListPool ( strategy_type , chain ) {
11
- const data = await getConfig ( 'desyn/' + strategy_type , `https://raw.githubusercontent.com/Meta-DesynLab/strategy-asset/refs/heads/main/main/ ${ strategy_type } .json ` )
12
- return data . config [ chain ] ?. safePools
11
+ const data = await getConfig ( 'desyn/' + strategy_type , `https://api.desyn.io/etf/defillama/get_pool_list?strategy_type= ${ strategy_type } ` )
12
+ return data . data . config [ chain ] ?. safePools
13
13
}
14
14
15
15
// This is aSTETH,
@@ -48,7 +48,8 @@ function getTvlFunction(strategy_type, isDoubleCounted) {
48
48
const allBals = await api . multiCall ( { abi : abi . getBalance , calls } )
49
49
api . add ( allTokens , allBals )
50
50
51
- if ( strategy_type === 'strategy2' )
51
+ // rest api type:: StrategyType2
52
+ if ( strategy_type === 'StrategyType2' )
52
53
api . removeTokenBalance ( leverageStaking )
53
54
}
54
55
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module.exports = {
11
11
12
12
chains . forEach ( chain => {
13
13
module . exports [ chain ] = {
14
- tvl : getTvlFunction ( 'strategy1' , false )
14
+ // rest api type:: StrategyType1
15
+ tvl : getTvlFunction ( 'StrategyType1' , false )
15
16
}
16
17
} )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module.exports = {
7
7
8
8
chains . forEach ( chain => {
9
9
module . exports [ chain ] = {
10
- tvl : getTvlFunction ( 'strategy2' , true )
10
+ // rest api type:: StrategyType2
11
+ tvl : getTvlFunction ( 'StrategyType2' , true )
11
12
}
12
13
} )
You can’t perform that action at this time.
0 commit comments