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

Added VinuFinance volume #2369

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

Conversation

samuelemarro
Copy link
Contributor

NOTE: This PR has a companion PR in the TVL repo.

Name (to be shown on DefiLlama): VinuFinance
Twitter Link: https://x.com/vinuchain
List of audit links if any:
Website Link: https://vinufinance.app/
Logo (High resolution, will be shown with rounded borders):

VinuFinance Logo

Current TVL: 1.1k USD
Treasury Addresses (if the protocol has treasury): 0xA529d46D97C9be7b93F44A9A0Ca4672C4591B93a
Chain: VinuChain
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): Oracle-less, no-liquidation lending on VinuChain
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: Lending
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): Tokens stored in the contract, including collateral and unused borrowable assets
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/VinuChain

@llamabutler
Copy link

The vinufinance adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts protocols vinufinance

🦙 Running VINUFINANCE adapter 🦙
---------------------------------------------------
Start Date:	Sat, 01 Feb 2025 14:41:24 GMT
End Date:	Sun, 02 Feb 2025 14:41:24 GMT
---------------------------------------------------

VINU 👇
Backfill start time: 1/10/2023
NO METHODOLOGY SPECIFIED
Daily volume: 0
End timestamp: 1738507283 (2025-02-02T14:41:23.000Z)

@samuelemarro
Copy link
Contributor Author

samuelemarro commented Feb 3, 2025 via email

const dailyVolume = createBalances();

await Promise.all(whitelistedPools.map(async (pool, idx) => {
const logs = await getLogs({ target: pool, eventAbi: BORROW_EVENT_ABI, })
Copy link
Contributor

Choose a reason for hiding this comment

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

i think Borrow event logs it not volume like other amm dexs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can confirm

Copy link
Member

Choose a reason for hiding this comment

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

yeah, can you update adapter to track fees instead of volume? think that is what we/our users are interested in for lending protocols.

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