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:
bob
2025-11-06 17:35:52 +08:00
committed by GitHub
parent 1eb50f7961
commit b032d0f30b
2 changed files with 26 additions and 1 deletions

View 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."],
],
}

View File

@@ -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