File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/adaptors/harvest-finance Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ const chains = {
1616 base : 'base' ,
1717 zksync : 'era' ,
1818} ;
19+ const url_config = {
20+ eth : 'ethereum' ,
21+ matic : 'polygon' ,
22+ arbitrum : 'arbitrum' ,
23+ base : 'base' ,
24+ zksync : 'zksync' ,
25+ }
1926
2027function aggregateBaseApys ( farm , poolsResponse ) {
2128 const farmApy = farm . estimatedApy ;
@@ -119,6 +126,8 @@ async function apy() {
119126 apyBase,
120127 apyReward : aggregateRewardApys ( v , poolsResponse [ chain ] ) ,
121128 rewardTokens,
129+ poolMeta : v . platform ? `${ v . platform [ 0 ] } ` : null ,
130+ url : `https://app.harvest.finance/${ url_config [ chain ] } /${ v . vaultAddress } ` ,
122131 } ;
123132 } ) ;
124133
@@ -144,5 +153,4 @@ async function apy() {
144153module . exports = {
145154 timetravel : false ,
146155 apy,
147- url : 'https://app.harvest.finance/' ,
148156} ;
You can’t perform that action at this time.
0 commit comments