casperholders / casperholdersfront

Vue.JS Webapp to interact with Casper Network
https://casperholders.io
Apache License 2.0
6 stars 6 forks source link

Reward calculator component #18

Closed paul-thebaud closed 3 years ago

paul-thebaud commented 3 years ago

This PR adds a reward calculator component (using a validator object and an amount) to display rewards previsions for next year (in a chart and table). This component is also integrated as a panel inside Delegate view.

codecov-commenter commented 3 years ago

Codecov Report

Merging #18 (98fffdf) into feature/AllValidators (80ca690) will increase coverage by 54.59%. The diff coverage is 35.65%.

Impacted file tree graph

@@                    Coverage Diff                     @@
##           feature/AllValidators      #18       +/-   ##
==========================================================
+ Coverage                       0   54.59%   +54.59%     
==========================================================
  Files                          0       29       +29     
  Lines                          0      806      +806     
  Branches                       0      113      +113     
==========================================================
+ Hits                           0      440      +440     
- Misses                         0      362      +362     
- Partials                       0        4        +4     
Impacted Files Coverage Δ
src/views/Delegate.vue 57.89% <ø> (ø)
src/views/Undelegate.vue 60.97% <0.00%> (ø)
src/components/chart/RewardCalculator.vue 3.07% <3.07%> (ø)
src/components/chart/LineChart.vue 16.66% <16.66%> (ø)
src/components/operations/Validators.vue 77.55% <40.00%> (ø)
src/components/chart/AbstractChart.vue 76.00% <76.00%> (ø)
src/views/Balance.vue 90.74% <80.76%> (ø)
src/components/chart/DoughnutChart.vue 100.00% <100.00%> (ø)
src/views/AddBid.vue 54.76% <0.00%> (ø)
src/components/operations/OperationDialog.vue 50.00% <0.00%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 80ca690...98fffdf. Read the comment docs.

KillianH commented 3 years ago

LGMT. Todo : add another test when user is not connected

paul-thebaud commented 3 years ago

LGMT. Todo : add another test when user is not connected

Done. Ready to merge.