explorer: fix stake account activating state (#21294)
This commit is contained in:
parent
2300a8c5dd
commit
72d7e426a6
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue