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

Add b14g adapter #11948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add b14g adapter #11948

wants to merge 1 commit into from

Conversation

nguyenquangthang1997
Copy link

@nguyenquangthang1997 nguyenquangthang1997 commented Oct 18, 2024

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):

b14g

Twitter Link:

https://x.com/b14g_network

List of audit links if any:

https://docs.b14g.xyz/audits

Website Link:

https://www.b14g.xyz/

Logo (High resolution, will be shown with rounded borders):

alt text

Current TVL:

20K

Treasury Addresses (if the protocol has treasury)
Chain:

Core

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):

b14g is a Bitcoin Merge Restaking platform that empowers BTC holders to earn more without risking their assets. Through Merge Restaking, we allow users to safely restake their BTC across multiple protocols, unlocking additional rewards while ensuring their Bitcoin remains secure and free from slashing. At the same time, we help DeFi protocols strengthen their security by combining Bitcoin's economic strength with their native tokens, creating a win-win scenario for both BTC holders and protocols.

Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:

Restaking

Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:

https://docs.b14g.xyz/

forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):

TVL corresponds to the sum of locked CORE and restaked BTC

Github org/user (Optional, if your code is open source, we can track activity):

https://github.com/b14glabs/

@llamatester
Copy link

The adapter at projects/b14g exports TVL:

core                      19.85 k

total                    19.85 k 

@llamatester
Copy link

The adapter at projects/b14g exports TVL:

core                      19.88 k

total                    19.88 k 

@Define101
Copy link
Member

@nguyenquangthang1997 what lrtCORE?

@nguyenquangthang1997
Copy link
Author

@Define101 when restaking CORE token, users will receive lrtCORE token respectively.

@g1nt0ki
Copy link
Member

g1nt0ki commented Oct 23, 2024

@nguyenquangthang1997 hmm, can you show an example txn of restaking core? I see lrtCORE minted here, but dont see corresponding CORE staking: https://scan.coredao.org/tx/0x82a466055c91b398085ddccbd8c7bd2930718ba26ab71ac4060f7ad6e8f68978#overview

Also, can you compute bitcoin staking onchain, ideally checking balance of contract where these tokens are restaked

@g1nt0ki g1nt0ki self-assigned this Oct 23, 2024
@nguyenquangthang1997
Copy link
Author

nguyenquangthang1997 commented Oct 23, 2024

@g1nt0ki here is a restaking tx: https://scan.coredao.org/tx/0xaf5ae9b364936d58eca649b8e7b3f9f44e28b39c55495f506fc6c6e81502ae93

We mint lrtCore token and send to Restake Manager contract. When users restake, RestakeManager contract will send lrtCore to them

@nguyenquangthang1997
Copy link
Author

nguyenquangthang1997 commented Oct 23, 2024

@g1nt0ki it is impossible to compute restaked bitcoin on-chain. Users lock BTC on Bitcoin network by sending it to a specific address. After a set duration, only they can unlock these BTC. The addresses are distinct for each user and we don't manage them to minimize risk. This idea is similar to BTC staking on CORE https://docs.coredao.org/docs/Learn/products/btc-staking/design or on Babylon https://btcstaking.babylonlabs.io/

@nguyenquangthang1997
Copy link
Author

When users restake, we mint an NFT respresent the locked BTC such as https://scan.coredao.org/nft/0x551d6c55c1fb44e1a667e364d729c9f4c1ac7b0b/11 . Would you like me to change computing BTC restaked via these NFT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants