Skip to content

Commit

Permalink
update bitflux #12690
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Dec 13, 2024
1 parent d73afa6 commit b8ca316
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions projects/bitflux/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
const { sumTokensExport } = require("../helper/unwrapLPs");
const { sumTokens2 } = require("../helper/unwrapLPs");

const swapFlashLoan = '0x4bcb9Ea3dACb8FfE623317E0B102393A3976053C';
const swapFlashLoans = Object.values({
'BP1': "0x4bcb9Ea3dACb8FfE623317E0B102393A3976053C",
'BP2': "0x6a63cbf00D15137756189c29496B14998b259254",
'BP3': "0xE7E1b1F216d81a4b2c018657f26Eda8FE2F91e26",
'BP4': "0xeC938Bc5b201E96b6AFE97070a8Ea967E0dcAe96"
})

const ADDRESSES = {
'WBTC': "0x5832f53d147b3d6Cd4578B9CBD62425C7ea9d0Bd",
"solvBTCb": "0x5b1fb849f1f76217246b8aaac053b5c7b15b7dc3",
"solvBTCcore": "0x9410e8052bc661041e5cb27fdf7d9e9e842af2aa"
async function tvl(api) {
const tokens = await api.multiCall({ abi: 'address[]:getTokens', calls: swapFlashLoans})
const ownerTokens = tokens.map((token, idx) => [token, swapFlashLoans[idx]])
return sumTokens2({ api, ownerTokens })
}

module.exports = {
core: {
tvl: sumTokensExport(
{
owner: swapFlashLoan,
tokens: [ADDRESSES.WBTC, ADDRESSES.solvBTCb, ADDRESSES.solvBTCcore]
}),
}
core: {
tvl
},
methodology: "Counts all BTC-pegged tokens in the Bitflux liquidity pools"
}

0 comments on commit b8ca316

Please sign in to comment.