File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ const apy = async () => {
6
6
) ;
7
7
8
8
return apyData . strategies
9
- . filter ( strategy => parseFloat ( strategy . tvlUsd ) > 10000 )
9
+ . filter ( strategy => parseFloat ( strategy . tvlUsd ) > 0 )
10
10
. map ( ( strategy ) => {
11
11
const currTvlUsd = parseFloat ( strategy . tvlUsd ) ;
12
12
const currPool = strategy . name ;
13
13
const currPoolId = strategy . id ;
14
14
const baseApy = ( strategy . apySplit . baseApy || 0 ) * 100 ;
15
15
const rewardsApy = ( strategy . apySplit . rewardsApy || 0 ) * 100 ;
16
-
16
+ const rewardTokens = strategy . depositToken . map ( token => token . address ) ;
17
17
const underlyingTokens = strategy . depositToken . map ( token => token . address ) ;
18
18
const symbols = strategy . depositToken . map ( token => token . symbol ) . join ( '-' ) ;
19
19
@@ -26,21 +26,13 @@ const apy = async () => {
26
26
tvlUsd : currTvlUsd ,
27
27
apyBase : baseApy ,
28
28
apyReward : rewardsApy ,
29
+ rewardTokens : rewardTokens ,
29
30
url : `https://app.strkfarm.com/strategy/${ currPoolId } ` ,
30
31
poolMeta : currPool ,
31
32
} ;
32
33
} ) ;
33
34
} ;
34
35
35
- apy ( ) . then ( ( strategies ) => {
36
- strategies . forEach ( ( strategy ) => {
37
- console . log ( strategy ) ;
38
- console . log ( '-----------------------------' ) ;
39
- } ) ;
40
- } ) . catch ( ( error ) => {
41
- console . error ( 'Error fetching strategies:' , error ) ;
42
- } ) ;
43
-
44
36
module . exports = {
45
37
timetravel : false ,
46
38
apy : apy ,
You can’t perform that action at this time.
0 commit comments