Skip to content

Commit

Permalink
explorer: fix stake account activating state (solana-labs#21294)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Nov 16, 2021
1 parent 2300a8c commit 72d7e42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion explorer/src/components/account/StakeAccountSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,11 @@ function isFullyInactivated(
return false;
}

return stake.delegation.stake.toString() === activation.inactive.toString();
const delegatedStake = stake.delegation.stake.toNumber();
const inactiveStake = activation.inactive;

return (
!stake.delegation.deactivationEpoch.eq(MAX_EPOCH) &&
delegatedStake === inactiveStake
);
}

0 comments on commit 72d7e42

Please sign in to comment.