moonbeam-foundation / moonbeam

An Ethereum-compatible smart contract parachain on Polkadot
https://moonbeam.network
GNU General Public License v3.0
916 stars 321 forks source link

Refactor staking reward smoke test #2824

Closed crystalin closed 1 month ago

crystalin commented 1 month ago

Refactors the test to be a bit more clear. Mostly removing the tons of variable for a single structure with (hopefully) better names.

It works for runtime 2800+ but is not compatible with previous ones (because of inflation computation changing from annual to round based)

github-actions[bot] commented 1 month ago

Coverage Report

@@                         Coverage Diff                         @@
##           master   crystalin-smoke-staking-refactor     +/-   ##
===================================================================
  Coverage   72.88%                             72.88%   0.00%     
  Files         229                                229             
  Lines       70024                              70024             
===================================================================
  Hits        51031                              51031             
  Misses      18993                              18993             
Files Changed Coverage

Coverage generated Thu May 30 20:12:49 UTC 2024