Skip to content

Commit 43ab962

Browse files
committed
fix: update tvl function to use api for circulating supply
1 parent e215139 commit 43ab962

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/folks-xalgo/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ const xAlgoAssetId = 1134696561;
55
module.exports = {
66
timetravel: false,
77
algorand: {
8-
tvl: async () => {
8+
tvl: async (api) => {
99
const info = await getAssetInfo(xAlgoAssetId);
10-
const total = info.circulatingSupply / 10 ** info.decimals;
11-
return { algorand: total };
10+
api.add(xAlgoAssetId+'', info.circulatingSupply)
1211
},
1312
},
1413
};

0 commit comments

Comments
 (0)