-
Notifications
You must be signed in to change notification settings - Fork 6.6k
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. and combine dipcoin spot and dipcoin perps into one dipcoin group. #16925
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
Merged
+26
−1
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c9ed6a9
Add DipCoin Perp TVL Adapter for SUI
everyding 65de8a8
Merge branch 'DefiLlama:main' into main
everyding f5870d8
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 0fae357
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding a0573cd
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 2c3db8f
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding c4e108a
Merge branch 'DefiLlama:main' into main
everyding b374897
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 023b809
Merge branch 'main' of github.com:dipcoinlab/DefiLlama-Adapters
everyding babf2da
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding ec72056
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 4fdf306
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 2d8701d
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding 2317409
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. a…
everyding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| const { get } = require("../helper/http"); | ||
| const { getConfig } = require('../helper/cache'); | ||
| const ADDRESSES = require('../helper/coreAssets.json'); | ||
|
|
||
| async function suiTvl(api) { | ||
| const tvl = (await getConfig('dipcoin/perps-sui', 'https://gray-api.dipcoin.io/api/perp-market-api/tvl'))?.data?.tvl; | ||
| api.add(ADDRESSES.sui.USDC, tvl/1e12); | ||
| } | ||
|
|
||
|
|
||
| module.exports = { | ||
| hallmarks: [ | ||
| ['2025-10-15', "Launched the Perpetual Mainnet (v1.0)."], | ||
| ['2025-10-16', "Listed perpetual contracts for BTC, ETH, and SUI."], | ||
| ['2025-10-29', "Upgraded to Mainnet v1.1, introducing Take Profit/Stop Loss and margin management features."], | ||
| ['2025-10-31', "Listed perpetual contracts for SOL, BNB, and XRP."], | ||
| ], | ||
| sui: { | ||
| tvl: suiTvl | ||
| }, | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can we read the token balances on chain instead of using this API please?
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.
Are these funds totally seperate to the pools?
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.
It has been changed to on-chain reading.
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.
They are separate.