From 55cbcf5d15c962e0814b66b10b8b4f8209cd9026 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Fri, 12 Jan 2024 11:36:31 +0800 Subject: [PATCH] fix: radix TVL calculation --- src/graphql/routes/radix-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql/routes/radix-api.ts b/src/graphql/routes/radix-api.ts index 273ea33..f715608 100644 --- a/src/graphql/routes/radix-api.ts +++ b/src/graphql/routes/radix-api.ts @@ -108,7 +108,7 @@ export class RadixAPI extends RESTDataSource { }; } - const lockedUnit = Number(validator.locked_owner_stake_unit_vault.balance); + const lockedUnit = Number(validator.active_in_epoch.stake); const TVL = lockedUnit * Number(coinPrice); if (Number.isNaN(TVL)) {