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 VinuNFT. #2280

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

Add VinuNFT. #2280

wants to merge 1 commit into from

Conversation

samuelemarro
Copy link
Contributor

Name (to be shown on DefiLlama): VinuNFT

Twitter Link: https://x.com/VinuChain

List of audit links if any: N/A

Website Link: https://vinunft.org

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

Volume: 1 USD (2025-04-01)

Treasury Addresses (if the protocol has treasury):

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): VinuChain's premier NFT platform.

Token address and ticker if any:

Category (full list at https://defillama.com/categories) *Please choose only one: NFT Marketplace

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 volume, how is volume being calculated): Through logs of NFT sales

Github org/user (Optional, if your code is open source, we can track activity): https://github.com/VinuChain


Note: VinuNFT is a non-custodial marketplace, so it doesn't really have a TVL in the proper sense of the word.

@llamabutler
Copy link

The vinunft adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts dexs vinunft

🦙 Running VINUNFT adapter 🦙
---------------------------------------------------
Start Date:	Fri, 03 Jan 2025 18:56:28 GMT
End Date:	Sat, 04 Jan 2025 18:56:28 GMT
---------------------------------------------------

VINU 👇
Backfill start time: 1/6/2024
NO METHODOLOGY SPECIFIED
Daily volume: 0
End timestamp: 1736016987 (2025-01-04T18:56:27.000Z)

const saleLogs = await getLogs({
target: MARKETPLACE,
eventAbi: event_purchased,
fromBlock: 5000,
Copy link
Contributor

Choose a reason for hiding this comment

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

if don't need fetch since start block plz remove this

target: MARKETPLACE,
eventAbi: event_purchased,
fromBlock: 5000,
cacheInCloud: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

new protocol i prefer remove cacheInCloud too

cacheInCloud: true,
});

await Promise.all(saleLogs.map(async log => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this line no need promise


await Promise.all(saleLogs.map(async log => {
const { _amount, _paymentToken, _price } = log;
dailyVolume.addToken(_paymentToken, _price * _amount);
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use function dailyVolume.add(tokenaddres, amount_of_token)
we convert to usd when collect

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