Skip to content

Commit 8a3f25c

Browse files
authored
Merge pull request #2167 from DefiLlama/yearn-url
v3 url
2 parents 9399d76 + a3c0d1b commit 8a3f25c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/adaptors/yearn-finance/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ const getApy = async () => {
3737
apyReward,
3838
rewardTokens:
3939
apyReward > 0 ? ['0x4200000000000000000000000000000000000042'] : [],
40-
url: `https://yearn.fi/vaults/${chains[chain[0]]}/${p.address}`,
40+
url: `https://yearn.fi/${
41+
p.version.substring(0, 1) == '3' ? 'v3' : 'vaults'
42+
}/${chains[chain[0]]}/${p.address}`,
4143
underlyingTokens:
4244
underlying.length === 0 ? [p.token.address] : underlying,
4345
};

0 commit comments

Comments
 (0)