Skip to content

Commit a27be22

Browse files
committed
fix: match pool IDs with previous values to preserve historic data
1 parent b228119 commit a27be22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/adaptors/aura/data/rpc/erc20.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function getSymbols(tokenAddresses, chain) {
1111
permitFailure: true,
1212
});
1313
return result.output.reduce((acc, { output }, idx) => {
14-
acc[idx] = output;
14+
acc[idx] = output?.replace(/-BPT$/, '') || null;
1515
return acc;
1616
}, {});
1717
}

src/adaptors/aura/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function poolsFunction() {
2727
if (activePools.length === 0) continue;
2828

2929
const lpTokens = activePools.map((pool) => pool.lptoken);
30+
3031
const [symbolsData, tvlsData, balancerData] = await Promise.all([
3132
getSymbols(lpTokens, sdkChainName),
3233
getPoolTvls(activePools, sdkChainName),
@@ -64,7 +65,7 @@ async function poolsFunction() {
6465
);
6566

6667
return {
67-
pool: `${pool.lptoken}-${chainName}`,
68+
pool: `${pool.lptoken.toLowerCase()}-aura`,
6869
chain: chainConfig.llamaChainName,
6970
project: 'aura',
7071
symbol: utils.formatSymbol(symbolsData[idx] ?? 'Unknown'),

0 commit comments

Comments
 (0)