-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: finish incentive module (#1952)
* exponent fix * store reward accumulator exponent * spec abstract * rename field * initial app wiring * comment out incomplete invariant * implement govtypes.Content * bug todo * package umee.incentive.v1 * add message name option to tx.proto * fix bug * ++ * make proto-all * proto: remove unbonding tiers * remove unbonding tiers from code * -- * allow unbonding duration zero * skip unbonding creation when duration is zero * update queries; unbonding time decrease affects ongoing unbondings * commit everything, everywhere, all at once * fix tests without changing module init order * userMaxWithdraw now respects bonded collateral * mock leverage keeper tokens * remove circular keeper reference and refactor hooks * msg bond tests * lint * md lint * tests * test max unbondings * unbonding completion test * ++ * implement emergency unbond logic * remove ErrNotImplemented * proto field renames * todon't * extra incentiveprogram validate * more validation * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * do not override heeper when setting hooks * implement proto change suggestions * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggested whitespace (app) * implement all util/keys changes * fix merge * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * validate functions for genesis subtypes * genesis test stub * add gov create programs test * emergency unbond test * msg sponsor tests * early return in updateRewards * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * cosmetic update in updateRewards * suggestion++ Co-authored-by: Robert Zaremba <[email protected]> * partial scenario test * refactor all incentive tests to unit tests * cleanup * lint * cleanup incentive program add/modify/delete functions * fixed bug * finishUnbondings -> cleanupUnbondings * break loop early * remove unnecessary gov.Content * comment-- * remove proto getters-all * remove proto messagename-all * rename to ForceUnbondTo * initialize exponent on program create (gov) * add v4.4 migrator * allow setting max unbondings to unlimited * replace panic with err in iterators * remove communtiy fund param - use distribution module account * proto doc max unbondings * emergency unbond CLI was missing * typo * comment * max unbondings default to 10 * comment-- * remove redundant empty string check * refactor functions surrounding reduceBondTo * add current rates query for frontend --------- Co-authored-by: Robert Zaremba <[email protected]>
- Loading branch information
1 parent
87a8725
commit 81b86b1
Showing
64 changed files
with
5,228 additions
and
2,920 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
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.