iadd fix (#2911)
This commit is contained in:
parent
90b04d2cc3
commit
b6d022e7ac
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user