Skip to content

Commit c15c493

Browse files
committed
feat: update endpoint and add new symbol mappings for TVL calculation
1 parent 91c604f commit c15c493

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/1dex/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
const { post } = require("../helper/http");
22

3-
const endpoint = 'https://exsat2.greymass.com/v1';
3+
const endpoint = 'https://eos.greymass.com/v1';
44

55
const symbolToCoingeckoId = {
66
'EOS': 'eos',
77
'USDT': 'tether',
8+
'BTC': 'bitcoin',
9+
'RAMS': 'ramses-exchange',
10+
'XSAT': 'exsat-network',
811
};
912

1013
async function getContractActionsWithPagination(contract, actionName) {
@@ -131,9 +134,6 @@ async function calculateTVLFromActions(contract) {
131134
async function eos() {
132135
const actionBasedBalances = await calculateTVLFromActions("portal.1dex", 50);
133136

134-
console.log(actionBasedBalances);
135-
136-
137137
const accountTvl = convertToDefiLlamaFormat(actionBasedBalances)
138138

139139
return accountTvl;

0 commit comments

Comments
 (0)