Skip to content

Commit

Permalink
Fix totalDelegated stat on account page
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Apr 27, 2024
1 parent 08cbbee commit e5187da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Page() {

const totalLocked = getTotalLockedCelo(lockedBalances);
const totalBalance = (walletBalance || 0n) + totalLocked;
const totalDelegated = BigInt(delegations?.totalPercent || 0) * totalLocked;
const totalDelegated = (BigInt(delegations?.totalPercent || 0) * totalLocked) / 100n;

return (
<Section className="mt-6" containerClassName="space-y-6 px-4">
Expand Down

0 comments on commit e5187da

Please sign in to comment.