mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
add tvl、volume、fee three meters for dipcoin spot and dipcoin perps. and combine dipcoin spot and dipcoin perps into one dipcoin group. (#16925)
Co-authored-by: alan <every_ding@hotmail.com>
This commit is contained in:
25
projects/dipcoin-perps/index.js
Normal file
25
projects/dipcoin-perps/index.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sui = require("../helper/chain/sui");
|
||||
|
||||
const SUI_BANK_ID =
|
||||
"0x3cc2bfbe6b9dc346f3f27a47b4b0c9eaaf0143c0c704726a1513a1e8c5d9a4c1";
|
||||
|
||||
async function suiTvl(api) {
|
||||
const object = await sui.getObject(SUI_BANK_ID);
|
||||
const usdcAmount = object.fields.coin_balance;
|
||||
|
||||
// div by 1e6 as usdc coin has 6 precision
|
||||
api.add(ADDRESSES.sui.USDC, usdcAmount);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sui: {
|
||||
tvl: suiTvl
|
||||
},
|
||||
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."],
|
||||
],
|
||||
}
|
||||
@@ -14,7 +14,7 @@ async function suiTvl(api) {
|
||||
|
||||
module.exports = {
|
||||
hallmarks: [
|
||||
[1747699200, "Spot Launch"],
|
||||
['2025-05-20', "Launched the Spot Mainnet (v1.0)."],
|
||||
],
|
||||
sui: {
|
||||
tvl: suiTvl
|
||||
|
||||
Reference in New Issue
Block a user