Skip to content

Commit df0554e

Browse files
0xpeluche0xpeluche
andauthored
Fix,Adapter,Counterstake (DefiLlama#11378)
Co-authored-by: 0xpeluche <[email protected]>
1 parent f49108e commit df0554e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/counterstake/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async function totalObyteTvl(timestamp) {
7474

7575
const totalTVLByEVMNetwork = async (api) => {
7676
const bridges = await getConfig('counterstake/bridges', 'https://counterstake.org/api/bridges').then((data) => data.data);
77-
const pooledAssistants = await getConfig('counterstake/poolStakes', 'https://counterstake.org/api/pooled_assistants').then((data) => data.data);
77+
const pooledAssistants = await getConfig('counterstake/poolStakes', 'https://counterstake.org/api/pooled_assistants').then((data) => data.data.assistants);
7878

7979
const bridgeAasByChain = [];
8080
const tokensAndOwners = []
@@ -89,6 +89,7 @@ const totalTVLByEVMNetwork = async (api) => {
8989
}
9090
});
9191

92+
9293
pooledAssistants.filter(({ network }) => network.toLowerCase() === api.chain).forEach(({ assistant_aa, side, bridge_id }) => {
9394
const bridge = bridges.find((bridge) => bridge.bridge_id === bridge_id);
9495

0 commit comments

Comments
 (0)