-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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: Adapter, defi.money #11330
feat: Adapter, defi.money #11330
Conversation
The adapter at projects/defi-money exports TVL:
|
The adapter at projects/defi-money exports TVL:
|
The adapter at projects/defi-money exports TVL:
|
The adapter at projects/defi-money-cdp exports TVL:
|
The adapter at projects/defi-money-earn exports TVL:
|
projects/defi-money-cdp/index.js
Outdated
Object.keys(config).forEach((chain) => { | ||
const { controller, viewer } = config[chain]; | ||
module.exports[chain] = { | ||
methodology: "TVL corresponds to the collateral deposited in the markets", |
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 set the methodology at the top level, not per chain
I am not a fan of this pattern of splitting into micro functions as I have to read bottom up, feel like it is easier if everything is in a single function so one can read it like a script (just a suggestion)
projects/defi-money-earn/index.js
Outdated
|
||
const getLPTokens = async (api, stakingContracts) => { | ||
const stakeTokens = await api.multiCall({ | ||
calls: stakingContracts.map((address) => ({ target: address })), |
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.
this wrapping is not needed
The adapter at projects/defi-money-earn exports TVL:
|
The adapter at projects/defi-money exports TVL:
|
The adapter at projects/defi-money exports TVL:
|
* feat:Adapter, defi-money * add methodology * add yield part * doublecounted: true * split project in two different products * code refactor * remove pool2 --------- Co-authored-by: 0xpeluche <[email protected]> Co-authored-by: g1nt0ki <[email protected]>
* feat:Adapter, defi-money * add methodology * add yield part * doublecounted: true * split project in two different products * code refactor * remove pool2 --------- Co-authored-by: 0xpeluche <[email protected]> Co-authored-by: g1nt0ki <[email protected]>
Name (to be shown on DefiLlama):
defi.money
Twitter Link:
https://x.com/defidotmoney
List of audit links if any:
Website Link:
https://defi.money/
Logo (High resolution, will be shown with rounded borders):
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:
arbitrum, optimism
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):
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
CDP & Yield (there is 2 different products split in 2 different folders)
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):
Github org/user (Optional, if your code is open source, we can track activity):