Fix unlocking/redeemable calc with currentEra (#1572)

* Fix unlocking/redeemable calc with currentEra

* typo

* >= 0 for era check

* Reverse >= 0, it is only 0

* Pass isVesting flag via balances.all
This commit is contained in:
Jaco Greeff
2019-11-14 18:27:25 +01:00
committed by GitHub
parent f89867a9ae
commit c44cb1858e
4 changed files with 38 additions and 36 deletions
-2
View File
@@ -53,8 +53,6 @@ function createDerivedLatest ([[hasBabe, epochDuration, sessionsPerEra], { curre
const sessionProgress = currentSlot.sub(epochStartSlot);
const eraProgress = currentIndex.sub(currentEraStartSessionIndex).add(sessionProgress);
// console.log(sessionProgress);
return {
currentEra,
currentIndex,