Skip to content

Commit b032d0f

Browse files
swiftheveryding
andauthored
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 <[email protected]>
1 parent 1eb50f7 commit b032d0f

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

projects/dipcoin-perps/index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
2+
const sui = require("../helper/chain/sui");
3+
4+
const SUI_BANK_ID =
5+
"0x3cc2bfbe6b9dc346f3f27a47b4b0c9eaaf0143c0c704726a1513a1e8c5d9a4c1";
6+
7+
async function suiTvl(api) {
8+
const object = await sui.getObject(SUI_BANK_ID);
9+
const usdcAmount = object.fields.coin_balance;
10+
11+
// div by 1e6 as usdc coin has 6 precision
12+
api.add(ADDRESSES.sui.USDC, usdcAmount);
13+
}
14+
15+
module.exports = {
16+
sui: {
17+
tvl: suiTvl
18+
},
19+
hallmarks: [
20+
['2025-10-15', "Launched the Perpetual Mainnet (v1.0)."],
21+
['2025-10-16', "Listed perpetual contracts for BTC, ETH, and SUI."],
22+
['2025-10-29', "Upgraded to Mainnet v1.1, introducing Take Profit/Stop Loss and margin management features."],
23+
['2025-10-31', "Listed perpetual contracts for SOL, BNB, and XRP."],
24+
],
25+
}

projects/dipcoin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function suiTvl(api) {
1414

1515
module.exports = {
1616
hallmarks: [
17-
[1747699200, "Spot Launch"],
17+
['2025-05-20', "Launched the Spot Mainnet (v1.0)."],
1818
],
1919
sui: {
2020
tvl: suiTvl

0 commit comments

Comments
 (0)