Skip to content

Commit

Permalink
Fix updating T balance after doing a top-up
Browse files Browse the repository at this point in the history
Accidentally removed the update of the `totalInTStake` field in
`6c34ea5`. This commit fixes it.
  • Loading branch information
r-czajkowski committed May 19, 2022
1 parent 42d081d commit 7a51f35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/staking/stakingSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export const stakingSlice = createSlice({
.add(BigNumber.from(stake.nuInTStake))
.toString()

stakes[stakeIdxToUpdate].totalInTStake = totalInTStake

const _isBeforeOrEqualBonusDeadline = isBeforeOrEqualBonusDeadline()
const eligibleStakeAmount = _isBeforeOrEqualBonusDeadline
? totalInTStake
Expand Down

0 comments on commit 7a51f35

Please sign in to comment.