Skip to content

Commit

Permalink
fix: staking payouts change claimed value (#1429)
Browse files Browse the repository at this point in the history
* fix: staking payouts change claimed value

* Tarik's suggestion

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>

---------

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
  • Loading branch information
Imod7 and TarikGul committed Apr 21, 2024
1 parent 3ed7cbe commit abf4d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/accounts/AccountsStakingPayoutsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ export class AccountsStakingPayoutsService extends AbstractService {
} else if ((validatorLedger as unknown as StakingLedgerTo240).lastReward) {
const lastReward = (validatorLedger as unknown as StakingLedgerTo240).lastReward;
if (lastReward.isSome) {
indexOfEra = (validatorLedger as unknown as StakingLedgerTo240).lastReward.unwrap().toNumber();
indexOfEra = lastReward.unwrap().toNumber();
} else {
continue;
indexOfEra = -1;
}
} else if (eraIndex.toNumber() < 518 && isKusama) {
indexOfEra = eraIndex.toNumber();
Expand Down

0 comments on commit abf4d9d

Please sign in to comment.