We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9399d76 + a3c0d1b commit 8a3f25cCopy full SHA for 8a3f25c
src/adaptors/yearn-finance/index.js
@@ -37,7 +37,9 @@ const getApy = async () => {
37
apyReward,
38
rewardTokens:
39
apyReward > 0 ? ['0x4200000000000000000000000000000000000042'] : [],
40
- url: `https://yearn.fi/vaults/${chains[chain[0]]}/${p.address}`,
+ url: `https://yearn.fi/${
41
+ p.version.substring(0, 1) == '3' ? 'v3' : 'vaults'
42
+ }/${chains[chain[0]]}/${p.address}`,
43
underlyingTokens:
44
underlying.length === 0 ? [p.token.address] : underlying,
45
};
0 commit comments