Closed bekauz closed 2 weeks ago
removing the reward emission config updates for now as this pr is big enough. added next steps in #839 .
Attention: Patch coverage is 96.87375%
with 78 lines
in your changes missing coverage. Please review.
Project coverage is 96.28%. Comparing base (
87485be
) to head (acc5fed
). Report is 1 commits behind head on development.:exclamation: Current head acc5fed differs from pull request most recent head 3f7eb1c
Please upload reports for the commit 3f7eb1c to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
reworks the existing staking rewards distribution logic.
contract now functions as a factory for distributing staking rewards. there is no more main voting power contract; each denom to be distributed needs to specify where to draw its voting power from.
reward rate is derived from the
RewardEmissionConfig
which describes how many udenoms (Uint128
) are to be distributed per time duration (blocks/seconds).introduces a shutdown option which claws back any undistributed rewards back to the treasury.
also implemented a suite test builder because the current unit test file was about to exceed 3000 lines of code (mostly because of copy pasting the setup in every test). however not all tests are present - this is a pending todo.