Unverified Commit b1e84beb authored by Tarik Gul's avatar Tarik Gul Committed by GitHub
Browse files

fix: add more historic support for staking-payouts (#1397)



* fix: add more historic support for staking-payouts

* Update typings

* update nit

* historyDepth guard

* added currentEra

* first commit

* updated deriveEraExposure

* udpated blockinfo interface

* updated payout calc

* removed unused types

* added eras block info

* run linter

* some linting

* udpated points and rewards

* undo

* fixed all type errors

* get era points at current era s end block

* edgecase era 0

* linting

* era 0

* disable depth for eras less than 518

* removed extra blocks in erasBlockInfo json file

* bug fix

* typo

* bug fix

* fix era err msg

* removed commented line

* linting

---------

Co-authored-by: default avatarbee344 <[email protected]>
Co-authored-by: default avatarImod7 <[email protected]>
parent 0b763f8d
Pipeline #450988 passed with stages
in 36 minutes and 54 seconds