From 8a4289daf5d7cfe182b8997b08a7a21705ef32cd Mon Sep 17 00:00:00 2001 From: devchenyan Date: Mon, 14 Oct 2024 17:00:24 +0800 Subject: [PATCH] fix: spell check --- .../neuron-wallet/src/services/transaction-sender.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/neuron-wallet/src/services/transaction-sender.ts b/packages/neuron-wallet/src/services/transaction-sender.ts index 09dfd25c1..ebe753e0c 100644 --- a/packages/neuron-wallet/src/services/transaction-sender.ts +++ b/packages/neuron-wallet/src/services/transaction-sender.ts @@ -755,13 +755,13 @@ export default class TransactionSender { const withdrawFraction = withdrawEpoch.index * depositEpoch.length const depositFraction = depositEpoch.index * withdrawEpoch.length - let depositedEpoches = withdrawEpoch.number - depositEpoch.number + let depositedEpochs = withdrawEpoch.number - depositEpoch.number if (withdrawFraction > depositFraction) { - depositedEpoches += BigInt(1) + depositedEpochs += BigInt(1) } - const lockEpoches = - ((depositedEpoches + (DAO_LOCK_PERIOD_EPOCHS - BigInt(1))) / DAO_LOCK_PERIOD_EPOCHS) * DAO_LOCK_PERIOD_EPOCHS - const minimalSinceEpochNumber = depositEpoch.number + lockEpoches + const lockEpochs = + ((depositedEpochs + (DAO_LOCK_PERIOD_EPOCHS - BigInt(1))) / DAO_LOCK_PERIOD_EPOCHS) * DAO_LOCK_PERIOD_EPOCHS + const minimalSinceEpochNumber = depositEpoch.number + lockEpochs const minimalSinceEpochIndex = depositEpoch.index const minimalSinceEpochLength = depositEpoch.length