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

feat: add lista lending adaptor #14267

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

Conversation

tyler-tsai
Copy link
Contributor

@tyler-tsai tyler-tsai commented Apr 10, 2025

Add a new lending protocol into listaDao
https://defillama.com/protocol/lista-dao#information

Lista Lending is a fully decentralized and permissionless P2P lending protocol crafted for BNB Chain, breaking free from the constraints of traditional large-pool lending to cultivate a more inclusive and resilient ecosystem.
Lista Lending’s core revolves around a vault-based system, pooling liquidity and dynamically allocating it across different lending & collateral pairs, which we call markets, based on supply and demand.

image

, withdrawLogs,
liquidateLogs
] = await Promise.all([
getLogs2({
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we calculate this TVL without using net flows? This is expensive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have an API do the same thing, but fetching result from API is not allowed, right?
Currently, there is no other way to calculate that part of TVL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

In that case yes you can use this endpoint. Please make sure your adapter checks that the data timestamp is fresh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you please show me an example how I can add value directly?

@waynebruce0x waynebruce0x self-assigned this Apr 10, 2025
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.

2 participants