Stroom: TVL on bitcoin via PoR oracle (getCombinedReserveValue) #17037
+22
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.jsonfile as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (to be shown on DefiLlama):
Stroom
Twitter Link:
https://x.com/StroomNetwork
List of audit links if any:
https://github.com/TheArcadiaGroup/publications/blob/main/audits/stroom-audit-final.pdf
Website Link:
https://stroom.network/
Logo (High resolution, will be shown with rounded borders):
https://drive.google.com/file/d/1rXSDuacFU617c1I8qUcxoDURQ4dhBvuY/view?usp=sharing
Current TVL:
~$30.2M
Treasury Addresses (if the protocol has treasury)
Chain:
Bitcoin, Ethereum
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):
Stroom is an economically secured yield-bearing BTC protocol, designed to solve two major BTC bridge problems: counterparty risk and opportunity cost. strBTC (Stroom BTC) is a wrapped Bitcoin asset, 1:1 backed by Bitcoin, created by Stroom to provide both native BTC yield generation and economic security.
Token address and ticker if any:
strBTC — 0xb2723d5df98689eca6a4e7321121662ddb9b3017
wstrBTC — 0xa3ca88cfb7bbe9cfbd47df053ffa2130c7e6f770
Category (full list at https://defillama.com/categories) *Please choose only one:
Liquid Staking
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
we use DIA https://www.diadata.org/
Implementation Details: Briefly describe how the oracle is integrated into your project:
Oracle is querying Lightning Network node that stores BTC, aggregating both on-chain and off-chain balances. In addition to that, portion of collateral is storred on Ethereum chain in a form of WBTC and cbBTC. Those values are extracted from the smart contracts and added to lightning network node balance.
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
https://docs.google.com/document/d/1CooM513_nJHTZhDF3NCLXbptlOya0wsY3AMbllJMB5s/edit?tab=t.0#heading=h.e29ryp9qtwct
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
TVL equals BTC reserves tracked on Bitcoin. We read the aggregated reserve value from Stroom's on-chain PoR oracle on Ethereum (denominated in satoshis), divide by 1e8 to get BTC, and report it as bitcoin (USD pricing from BTC).
Github org/user (Optional, if your code is open source, we can track activity):
https://github.com/stroomnetwork/stroom-contracts-rebase