Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@
"proton",
"provenance",
"pryzm",
"ptb",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this is required

"pulse",
"q",
"qom",
Expand Down
28 changes: 28 additions & 0 deletions projects/ptb/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const { sumTokensExport } = require('../helper/sumTokens')

const ETHEREUM_STAKING_CONTRACT = '0x0e9bD42dE657fF590d214CcC8d4f94B77D2BD908';
const ETH = '0x0000000000000000000000000000000000000000';
const PTB = '0x30a25CC9c9EADe4D4d9e9349BE6e68c3411367D3';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please export any PTB TVL as staking rather then under tvl as it is your own token

const USDC = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48';

const cfg = {
ethereum: {
owners: [ETHEREUM_STAKING_CONTRACT],
tokens: [ETH, PTB, USDC],
},
}

module.exports = {
methodology:
'TVL = Portal staking contract balances. No AMM liquidity included because Portal uses atomic swaps.',

...Object.fromEntries(
Object.entries(cfg).map(([chain, { owners, tokens }]) => [
chain,
{
tvl: sumTokensExport({ owners, tokens }),
},
])
)

}
Loading