Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/new layout #12966

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion projects/helper/bitcoin-book/lorenzo.js
Copy link
Member

Choose a reason for hiding this comment

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

this change is good, thanks

Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ module.exports = [
// cap3, BBN target stake script address
"bc1prku5dse3ps3hkyjn5lpu0qcypcmqmhqhh8wfuztpck5h5unx5wjq9mpjjv",
// cap3, BBN target stake script address
"bc1p9yrhpkm6klag7r0xq8f93degehxc086tnv2lsckg54cl2yl5wyeqdhx8v6"
"bc1p9yrhpkm6klag7r0xq8f93degehxc086tnv2lsckg54cl2yl5wyeqdhx8v6",

// Relay address
"bc1p9ta9m4h6z5hz5mvu2450qqrd5x507a25c4uper8nkxllhs94x7msv77l0s"
]
Copy link
Member

Choose a reason for hiding this comment

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

I am bit confused why this was counted as tvl in the first place, but changing folder names breaks our server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to show Total BTC staked to mint stBTC and stBTC supply on BNB. There are two parts.

File renamed without changes.
8 changes: 8 additions & 0 deletions projects/lorenzo-stbtc/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { sumTokensExport } = require("../helper/sumTokens");
const bitcoinAddressBook = require('../helper/bitcoin-book/index.js')

module.exports = {
methodology: "Lorenzo, As the Bitcoin Liquidity Finance Layer",
doublecounted:true,
bitcoin: { tvl: sumTokensExport({ owners : bitcoinAddressBook.lorenzo }) }
};
4 changes: 3 additions & 1 deletion projects/lorenzo/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const { sumTokensExport } = require("../helper/sumTokens");
const bitcoinAddressBook = require('../helper/bitcoin-book/index.js')

// Lorenzo Protocol Tota TVL
const allBtcAddressList = [...bitcoinAddressBook.lorenzo, ...bitcoinAddressBook.lorenzo2]
Copy link
Member

Choose a reason for hiding this comment

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

no, this leads to doublecounting, as we have already listed stbtc & enzoBTC part.

This merged listing is redundant imo, we already show a parent protocol that includes all sub protocols

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you change the sub protocol tab to Lorenzo stBTC, Lorenzo stBTC from BNB, Lorenzo enzoBTC?

module.exports = {
methodology: "Lorenzo, As the Bitcoin Liquidity Finance Layer",
doublecounted:true,
bitcoin: { tvl: sumTokensExport({ owners : bitcoinAddressBook.lorenzo }) }
bitcoin: { tvl: sumTokensExport({ owners : allBtcAddressList }) }
};
Loading