explorer: fix stake account activating state (#21294)

This commit is contained in:
Justin Starry 2021-11-16 10:08:22 +01:00 committed by GitHub
parent 2300a8c5dd
commit 72d7e426a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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
);
}