Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions projects/dipcoin-perps/index.js
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;
Copy link
Collaborator

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?

Copy link
Collaborator

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?

Copy link
Contributor

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?

It has been changed to on-chain reading.

Copy link
Contributor

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?

They are separate.

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
},
}

2 changes: 1 addition & 1 deletion projects/dipcoin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading