-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add VinuNFT. #2280
Conversation
The vinunft adapter exports:
|
dexs/vinunft/index.ts
Outdated
const saleLogs = await getLogs({ | ||
target: MARKETPLACE, | ||
eventAbi: event_purchased, | ||
fromBlock: 5000, |
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.
if don't need fetch since start block plz remove this
dexs/vinunft/index.ts
Outdated
target: MARKETPLACE, | ||
eventAbi: event_purchased, | ||
fromBlock: 5000, | ||
cacheInCloud: true, |
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.
new protocol i prefer remove cacheInCloud too
dexs/vinunft/index.ts
Outdated
cacheInCloud: true, | ||
}); | ||
|
||
await Promise.all(saleLogs.map(async log => { |
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 line no need promise
dexs/vinunft/index.ts
Outdated
|
||
await Promise.all(saleLogs.map(async log => { | ||
const { _amount, _paymentToken, _price } = log; | ||
dailyVolume.addToken(_paymentToken, _price * _amount); |
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.
you can use function dailyVolume.add(tokenaddres, amount_of_token)
we convert to usd when collect
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.
I think this part is fine since, tokenaddress in this case is NFT address which we are not pricing
The vinunft adapter exports:
|
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):
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.