Fair-Squares / fair-squares

Fair housing for all
http://www.fair-squares.nl
Apache License 2.0
16 stars 8 forks source link

225 runtime panic when an asset is finalized before an investor list is assembled #226

Closed ndkazu closed 1 year ago

ndkazu commented 1 year ago

Added a check to prevent owner share distribution if there are not enough funds in Fees_account

codecov-commenter commented 1 year ago

Codecov Report

Merging #226 (23b1f8f) into main (51e926a) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
+ Coverage   81.49%   81.51%   +0.02%     
==========================================
  Files          58       58              
  Lines        5463     5465       +2     
==========================================
+ Hits         4452     4455       +3     
+ Misses       1011     1010       -1     
Impacted Files Coverage Δ
node/src/chain_spec.rs 0.00% <ø> (ø)
pallets/share_distributor/src/lib.rs 85.71% <ø> (ø)
runtime/src/lib.rs 11.00% <ø> (ø)
pallets/share_distributor/src/functions.rs 91.66% <100.00%> (+0.98%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.