Skip to content

Commit b8f64e1

Browse files
committed
merkl fix missing symbols
1 parent 7715552 commit b8f64e1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/adaptors/merkl/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,18 @@ const main = async () => {
6565
try {
6666
const poolAddress = pool.identifier;
6767

68-
const symbol = pool.tokens.map((x) => x.symbol).join('-');
68+
let symbol = pool.tokens.map((x) => x.symbol).join('-');
69+
70+
if (!symbol.length) {
71+
symbol = (
72+
await sdk.api.abi.call({
73+
target: pool.depositUrl.split('/').slice(-1)[0],
74+
chain,
75+
abi: 'erc20:symbol',
76+
})
77+
).output;
78+
}
79+
6980
const underlyingTokens = pool.tokens.map((x) => x.address);
7081

7182
const tvlUsd = pool.tvl;

0 commit comments

Comments
 (0)