Skip to content

Commit d065f2a

Browse files
committed
bedrock LRT: brBTC
1 parent 19d66e2 commit d065f2a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

projects/brbtc/index.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
2+
const { sumTokens2, } = require('../helper/unwrapLPs')
3+
4+
const chainConfigs = {
5+
ethereum: {
6+
addr: "0x2eC37d45FCAE65D9787ECf71dc85a444968f6646",
7+
vault: "0x1419b48e5C1f5ce413Cf02D6dcbe1314170E3386",
8+
assets: [
9+
ADDRESSES.ethereum.WBTC,//WBTC
10+
"0x004E9C3EF86bc1ca1f0bB5C7662861Ee93350568",//uniBTC
11+
"0xC96dE26018A54D51c097160568752c4E3BD6C364",//FBTC
12+
"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",//cbBTC
13+
"0x2F913C820ed3bEb3a67391a6eFF64E70c4B20b19",//MBTC
14+
],
15+
},
16+
bsc: {
17+
addr: "0x733a6c29eDA4a58931AE81b8d91e29f2EAf01df3",
18+
vault: "0x1dF46ec5e86FeC4589b3fA7D60B6Dc7Ef890AD93",
19+
assets: [
20+
ADDRESSES.bsc.BTCB,//BTCB
21+
"0x6B2a01A5f79dEb4c2f3c0eDa7b01DF456FbD726a",//uniBTC
22+
"0xC96dE26018A54D51c097160568752c4E3BD6C364",//FBTC
23+
],
24+
}
25+
}
26+
module.exports = {
27+
methodology: 'brBTC standing for Bedrock BTC, is designed specifically for Bitcoin holders seeking to participate in the next generation of DeFi opportunities. It accepts uniBTC and multiple wrapped BTC assets and Bedrock manages those assets on multiple trusted yield source layers such as Babylon, Kernel, Pell, Satlayer and etc.',
28+
doublecounted: true,
29+
}
30+
31+
async function tvl(api) {
32+
const cfg = chainConfigs[api.chain] ?? {}
33+
if (!cfg) return;
34+
return sumTokens2({ api, owner: cfg.vault, tokens: cfg.assets })
35+
}
36+
37+
['ethereum', 'bsc'].forEach(chain => {
38+
module.exports[chain] = { tvl: tvl }
39+
})

0 commit comments

Comments
 (0)