Skip to content

Commit

Permalink
fix: Staking Payouts query param depth (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Apr 1, 2024
1 parent 5951085 commit c73c801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/accounts/AccountsStakingPayoutsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export default class AccountsStakingPayoutsController extends AbstractController
let sanitizedDepth: string | undefined;
if (depth && isKusama) {
sanitizedDepth = Math.min(Number(depth), currentEra - 518).toString();
} else if (depth) {
sanitizedDepth = depth as string;
}
if (currentEra < 518 && isKusama) {
const eraStartBlock: number = earlyErasBlockInfo[currentEra].start;
Expand Down

0 comments on commit c73c801

Please sign in to comment.