Skip to content

Commit

Permalink
fix: radix TVL calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Jan 12, 2024
1 parent ef38ef7 commit 55cbcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/routes/radix-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 55cbcf5

Please sign in to comment.