Skip to content

Commit a6b8fd1

Browse files
g1nt0kimanojdv
andauthored
Portal defi (#17155)
Co-authored-by: Manoj Duggirala <[email protected]>
1 parent f326ffe commit a6b8fd1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

projects/portal-defi/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, 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)