-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dAppStaking): Move actions for bonus rewards (#1418)
* Concept adaptation for move functionality * Comments * BonusStatus type, config param added & tests adjusted * move extrinsic * additional tests * dynamic MAX_BONUS_SAFE_MOVES config param * test utils: assert_move_stake and composable helpers * types: extra compare_stake_amounts method and StakeAmount stake takes bonus_status * some move tests * benchmarks for both unstake scenarios * fix: current_era usage * fix: unstake from future stake does not chip current_stake_amount in EraInfo * fix: avoid copying in subtracted_stake_amount * fix: convert bonus stake into regular stake for just forfeited bonus * task: renaming and cleanups * fix: move from unregistered * extra test * task: on runtime upgrade bonus update migration * fix: tmp weights for compilation success * README updated * feat: add 'move_stake' to dAppStaking precompiles * feat: test lazy_update_bonus_status * misc: nomenclature consistency & comment cleanup * fix: pre/post runtime upgrade checks * fix: clippy CI * task: add integrity tests for BonusStatus update * review comments & renames * feat: merge existing bonus statuses * fix: previous_staked is only retained for previous eras * fix benchmark compilation * migration fully tested * fix: rework unstake_amount * fix: remove "assert_eq!" from runtime * fix: add BonusUpdateState for migration * add V8ToV9 migration to parachain runtimes * minor cleanups --------- Co-authored-by: Igor Papandinas <[email protected]>
- Loading branch information
1 parent
d078b43
commit ff28544
Showing
23 changed files
with
3,661 additions
and
697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.