Skip to content

Commit eb05050

Browse files
Add DESK CLOB TVL (#15983)
Co-authored-by: Jonathan on DESK <[email protected]>
1 parent f224e4e commit eb05050

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/clob/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const axios = require("axios");
2+
const ADDRESSES = require('../helper/coreAssets.json')
3+
const BigNumber = require("bignumber.js");
4+
5+
async function arbitrumTvl(api) {
6+
const url = `https://api.orderly.org/v1/public/balance/stats?broker_id=desk`
7+
const response = await axios.get(url)
8+
const tvl = new BigNumber(response.data.data.total_holding).times(1e6).toFixed(0)
9+
10+
api.add(ADDRESSES.arbitrum.USDC_CIRCLE, tvl)
11+
}
12+
13+
module.exports = {
14+
misrepresentedTokens: true,
15+
arbitrum: { tvl: arbitrumTvl },
16+
};

0 commit comments

Comments
 (0)