From 4e4f5a4b93a74697607772c234d1f583aae4ad6f Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 21 Sep 2020 17:06:57 +0200 Subject: [PATCH] Adjust for new payout weights (#3733) --- packages/page-staking/src/Payouts/PayButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/page-staking/src/Payouts/PayButton.tsx b/packages/page-staking/src/Payouts/PayButton.tsx index 54caa56b16..6049072db4 100644 --- a/packages/page-staking/src/Payouts/PayButton.tsx +++ b/packages/page-staking/src/Payouts/PayButton.tsx @@ -13,7 +13,7 @@ import { useApi, useToggle } from '@polkadot/react-hooks'; import { useTranslation } from '../translate'; -const DEFAULT_BATCH = 40; +const DEFAULT_BATCH = 36; const DEFAULT_PAYOUTS = 64; interface Props { @@ -29,7 +29,7 @@ interface SinglePayout { } function createExtrinsic (api: ApiPromise, payout: PayoutValidator | PayoutValidator[], maxPayouts: number): SubmittableExtrinsic<'promise'> | null { - const batchSize = DEFAULT_BATCH * (DEFAULT_PAYOUTS / maxPayouts); + const batchSize = DEFAULT_BATCH * DEFAULT_PAYOUTS / maxPayouts; if (Array.isArray(payout)) { if (payout.length === 1) {