This commit is contained in:
Keith Ingram 2020-06-10 03:29:57 +12:00 committed by GitHub
parent 90b04d2cc3
commit b6d022e7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ function extractStashes (allRewards: Record<string, DeriveStakerReward[]>): Payo
.map(([stashId, rewards]): PayoutStash => ({
available: rewards.reduce((result, { validators }) =>
Object.values(validators).reduce((result, { value }) =>
result.iadd(value), result), BN_ZERO
result.iadd(value), result), new BN(0)
),
rewards,
stashId