Skip to content

Commit 2291969

Browse files
authored
Add Harvest Finance vault meta info (#1722)
1 parent 947501b commit 2291969

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/adaptors/harvest-finance/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

2027
function 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() {
144153
module.exports = {
145154
timetravel: false,
146155
apy,
147-
url: 'https://app.harvest.finance/',
148156
};

0 commit comments

Comments
 (0)