Skip to content

Commit

Permalink
Sonic TVL
Browse files Browse the repository at this point in the history
  • Loading branch information
MirthFutures committed Dec 27, 2024
1 parent 25cfc6c commit 85213c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/api/stats/getTvl.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ const {

LISK_CHAIN_ID,
LISK_VAULTS_ENDPOINT,

SONIC_CHAIN_ID,
SONIC_VAULTS_ENDPOINT,
} = require('../../constants');
const { getKey, setKey } = require('../../utils/cache');

Expand Down Expand Up @@ -240,6 +243,10 @@ const chains = [
chainId: LISK_CHAIN_ID,
vaultsEndpoint: LISK_VAULTS_ENDPOINT,
},
{
chainId: SONIC_CHAIN_ID,
vaultsEndpoint: SONIC_VAULTS_ENDPOINT,
},
];

const CACHE_KEY = 'TVL';
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const MULTICHAIN_ENDPOINTS: Partial<Record<ApiChain, string>> = {
rootstock: ROOTSTOCK_VAULTS_ENDPOINT,
scroll: SCROLL_VAULTS_ENDPOINT,
lisk: LISK_VAULTS_ENDPOINT,
// sonic: SONIC_VAULTS_ENDPOINT,
sonic: SONIC_VAULTS_ENDPOINT,
} as const;

const EXCLUDED_IDS_FROM_TVL = ['venus-wbnb'];
Expand Down

0 comments on commit 85213c1

Please sign in to comment.