Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

IS-1167: Fix inserting unstake slot and refactor normalizing stakePart #477

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

inwonkim
Copy link
Member

Fix inserting unstake slot and refactor normalizing stakePart

  • use linear search rather than wrong binary search to find index of new unstake slot
  • use revision to divide logic in normalizing stakePart method
  • if unstake slot if full and user add unstake, unstakeBlockHeight of last slot is max(unstakeInfo[-1][1], unstke_block_height)

* use linear search rather than wrong binary search to find index of new unstake slot
* use revision to divide logic in normalizing stakePart method
* if unstake slot if full and user add unstake, unstakeBlockHeight of last slot is max(unstakeInfo[-1][1], unstke_block_height)
@inwonkim inwonkim merged commit d8c0d59 into release/1.7.0 Jul 29, 2020
@goldworm-icon goldworm-icon deleted the IS-1167-fix-multiple-unstake-logic branch November 24, 2020 01:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants