Skip to content

Commit e1b5392

Browse files
Add bfBTC pool and edit project name (DefiLlama#15173)
1 parent 4c204f2 commit e1b5392

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

projects/rolldex/index.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ const abi = {
33
};
44

55
const CONFIG = {
6-
btr: '0x3d0E678776e4287BEfB0449d344D195ad1A2C418',
7-
base: '0xa67998d867cd4b64fe9ecc1549341f1d86389c0f',
6+
btr: ['0x3d0E678776e4287BEfB0449d344D195ad1A2C418'],
7+
base: ['0xa67998d867cd4b64fe9ecc1549341f1d86389c0f','0x823e0F1E91f9851529Ce90c23e144203a59eF40a'],
88
};
99

1010
const tvl = async (api) => {
11-
const tokenInfo = await api.call({ abi: abi.totalValue, target: CONFIG[api.chain], });
12-
const tokens = tokenInfo.map(i => i.tokenAddress);
13-
return api.sumTokens({ tokens, owners: [CONFIG[api.chain]] });
11+
var tokens = []
12+
for(var i = 0; i < CONFIG[api.chain].length; i++){
13+
const tokenInfo = await api.call({ abi: abi.totalValue, target: CONFIG[api.chain][i], });
14+
tokenInfo.forEach((item)=>{
15+
tokens.push(item.tokenAddress)
16+
})
17+
}
18+
19+
return api.sumTokens({ tokens, owners: CONFIG[api.chain] });
1420
}
1521

1622
module.exports.methodology = "RollDex functions as a decentralized exchange for crypto derivatives. It offers on-chain perpetuals, providing traders and stakers with exceptional opportunities."

0 commit comments

Comments
 (0)