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 LibreCapital tvl calculation #13153

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add LibreCapital tvl calculation #13153

wants to merge 3 commits into from

Conversation

yehia67
Copy link

@yehia67 yehia67 commented Jan 17, 2025

Name (to be shown on DefiLlama):

Libre Capital

Twitter Link:

https://x.com/librecap

List of audit links if any:
Website Link:

https://www.librecapital.com/

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

66dc629202429c73b848017c_Libre_Logo_Standard

Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain:

Polygon
Injective
Sui

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

Libre is building the investment infrastructure to enable asset managers to seamlessly connect with distributors and enable unparalleled access to global alternatives investment funds. In addition, Libre is working on enabling access to value-add services in the alternative assets ecosystem such as collateralized lending and automated rebalancing. Currently, Libre only makes its tokenized funds available to institutional and accredited investors.

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

rwa

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

All investors who have requested receipt tokens for our Money Market Instruments on both the Polygon and Injective networks will be included in the count. The receipt token serves as a representation of the number of shares held by each investor, while the NAV (Net Asset Value) reflects the underlying value of each share within the tokenized fund. This ensures transparency and accuracy in tracking both ownership and the intrinsic value of the assets.

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

@llamabutler
Copy link

The adapter at projects/libre-capital exports TVL:

polygon                   19.83 M
injective                 2.02 M

total                    21.84 M 

@yehia67
Copy link
Author

yehia67 commented Jan 17, 2025

Is it okay to set DeFi Lama's IP address as the only IP able to access our fund NAV values? The URL included on the PR is from our dev environment if you are okay with sharing IP address we will do this change on the prod URL if no, No problem we will update the URL to be for production without any change

@waynebruce0x
Copy link
Collaborator

Our IP isnt static so this wouldnt work unfortunately

const { queryContract: queryContractCosmos } = require("../helper/chain/cosmos");
const { fetchURL } = require("../helper/utils");

const NAV_API_URL = "https://nav.dev.librecapital.com/funds";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any on chain liquidity or third party oracles we could use instead? Your endpoint will be hard to debug and audit for us, so its hard to tell if the data is valid.

Copy link
Author

Choose a reason for hiding this comment

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

We have already reached out to Chainlink. In the upcoming months, we expect to have our oracle ready. However, we need to list on DeFiLama as soon as possible. Please let me know what I can do to make this endpoint more transparent and easier for you to work with.

We have already fetched the number of shares from the blockchain. The challenge is that no one has ever developed an oracle for fund prices before. We are collaborating with Chainlink on this, but we need more time to finalize the solution, and we are under a tight deadline. The fund prices are not confidential, as they are published and audited in the stock market. We used our endpoints because they are the fastest and allow us to guarantee timely price updates. Of course, this is only a temporary solution until Chainlink completes the oracle.

Copy link
Author

Choose a reason for hiding this comment

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

Our API pulls data from the fund administration platforms we don't create the values ourselves

@waynebruce0x waynebruce0x self-assigned this Jan 20, 2025
@llamabutler
Copy link

The adapter at projects/libre-capital exports TVL:

polygon                   19.84 M
sui                       10.05 M
injective                 2.02 M

total                    31.91 M 

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.

3 participants