Skip to content

Commit 1c8ed49

Browse files
committed
added TVL index for ptb
1 parent c9bb075 commit 1c8ed49

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

projects/helper/chains.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331
"proton",
332332
"provenance",
333333
"pryzm",
334+
"ptb",
334335
"pulse",
335336
"q",
336337
"qom",

projects/ptb/index.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const { sumTokensExport } = require('../helper/sumTokens')
2+
3+
const ETHEREUM_STAKING_CONTRACT = '0x0e9bD42dE657fF590d214CcC8d4f94B77D2BD908';
4+
const ETH = '0x0000000000000000000000000000000000000000';
5+
const PTB = '0x30a25CC9c9EADe4D4d9e9349BE6e68c3411367D3';
6+
const USDC = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48';
7+
8+
const cfg = {
9+
ethereum: {
10+
owners: [ETHEREUM_STAKING_CONTRACT],
11+
tokens: [ETH, PTB, USDC],
12+
},
13+
}
14+
15+
module.exports = {
16+
methodology:
17+
'TVL = Portal staking contract balances. No AMM liquidity included because Portal uses atomic swaps.',
18+
19+
...Object.fromEntries(
20+
Object.entries(cfg).map(([chain, { owners, tokens }]) => [
21+
chain,
22+
{
23+
tvl: sumTokensExport({ owners, tokens }),
24+
},
25+
])
26+
)
27+
28+
}

0 commit comments

Comments
 (0)