sei-protocol / sei-chain

Apache License 2.0
2.67k stars 797 forks source link

Withdraw multiple delegation rewards #1670

Closed dssei closed 1 month ago

dssei commented 1 month ago

Describe your changes and provide context

We need a way to withdraw multiple rewards in v2 app. This change adds new method to precompile to make that possible.

Testing performed to validate your change

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 73.91304% with 30 lines in your changes missing coverage. Please review.

Project coverage is 60.54%. Comparing base (d793ea1) to head (4b15da4).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1670/graphs/tree.svg?width=650&height=150&src=pr&token=DG7ZZJ3PVV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1670?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) ```diff @@ Coverage Diff @@ ## main #1670 +/- ## ========================================== + Coverage 60.46% 60.54% +0.08% ========================================== Files 370 370 Lines 27282 27367 +85 ========================================== + Hits 16495 16570 +75 - Misses 9656 9673 +17 + Partials 1131 1124 -7 ``` | [Files](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1670?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) | Coverage Δ | | |---|---|---| | [precompiles/distribution/distribution.go](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1670?src=pr&el=tree&filepath=precompiles%2Fdistribution%2Fdistribution.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol#diff-cHJlY29tcGlsZXMvZGlzdHJpYnV0aW9uL2Rpc3RyaWJ1dGlvbi5nbw==) | `72.95% <73.91%> (+24.31%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1670/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)