-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Bread #14083
Bread #14083
Conversation
The adapter at projects/baker-dao exports TVL:
|
Please let us know when this is ready for review |
@waynebruce0x it should be good to go now 🙏 Thank you. |
The adapter at projects/baker-dao exports TVL:
|
Updated formula to reflect available liquidity @waynebruce0x |
projects/baker-dao/index.js
Outdated
}); | ||
|
||
// Get the prevPrice from the contract | ||
const prevPrice = await sdk.api.abi.call({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already track BREAD price so just need to export a token balance here instead of multiplying by price
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this?
The adapter at projects/baker-dao exports TVL:
|
projects/baker-dao/index.js
Outdated
}); | ||
|
||
// Get BREAD token balance (in contract) | ||
const breadBalance = await sdk.api.erc20.balanceOf({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we cant count own token balance as tvl
The adapter at projects/baker-dao exports TVL:
|
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.json
file 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):
Baker DAO
Twitter Link:
https://x.com/BakerDAO420
List of audit links if any:
https://documentation.bakerdao.io/security
Website Link:
https://www.bakerdao.io/
LOGO
https://www.bakerdao.io/bakerdao_logo.PNG
Current TVL: $33.27m
Treasury Addresses (if the protocol has treasury)
Chain: Berachain
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed):
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed):
Short Description (to be shown on DefiLlama):
Non-liquidateable $BERA loans and leverage
Token address and ticker if any:
BREAD, 0x0003eedfdd020bf60d10cf684abac7c4534b7ead
Category (full list at https://defillama.com/categories) *Please choose only one:
Berachain Ecosystem
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:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Combination of $BERA in contract and amount of $BERA given as loan to users against $BREAD collateral
Github org/user (Optional, if your code is open source, we can track activity):