Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growth program audit test fixes #66

Merged
merged 6 commits into from
Jul 16, 2024
Merged

Conversation

alyn509
Copy link
Contributor

@alyn509 alyn509 commented Mar 28, 2024

fixing tests of the contract after having applied the changes of the audit
https://docs.google.com/document/d/1j3U45sbC4rVESgii-fxjOxbm4UkZgwGP05UTHLBjjuQ/edit

Copy link

github-actions bot commented Apr 8, 2024

Contract comparison - from 44dba56 to 6ef1c72
⚠️ Warning: Could not download the report for the base branch. Displaying only the report for the current branch. ⚠️

Path                                                                                             size                  has-allocator                     has-format
mx-metabonding-sc
- growth-program/growth-program.wasm 21393 No No
- metabonding/metabonding.wasm 20931 No No
- pair-mock/pair-mock.wasm 2289 No No
- router-mock/router-mock.wasm 893 No No

@alyn509 alyn509 marked this pull request as ready for review April 8, 2024 07:46
Copy link

Coverage Summary

Totals

Count Covered %
Lines 3771 3318 87.99
Regions 952 646 67.86
Functions 325 234 72.00
Instantiations 1967 367 18.66

Files

Expand
File Lines Regions Functions Instantiations
/growth-program/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/growth-program/src/events.rs 43.14% 16.42% 27.59% 9.40%
/growth-program/src/lib.rs 100.00% 50.00% 100.00% 3.85%
/growth-program/src/price_query.rs 58.46% 61.54% 100.00% 21.28%
/growth-program/src/project.rs 52.08% 42.86% 54.55% 8.79%
/growth-program/src/rewards/claim.rs 91.22% 79.66% 86.67% 17.39%
/growth-program/src/rewards/claim_types.rs 43.75% 25.00% 27.27% 10.00%
/growth-program/src/rewards/common_rewards.rs 75.86% 61.90% 63.64% 12.22%
/growth-program/src/rewards/deposit.rs 93.91% 79.49% 62.50% 7.58%
/growth-program/src/rewards/energy.rs 57.38% 57.14% 75.00% 13.24%
/growth-program/src/rewards/notes_history.rs 27.50% 20.00% 33.33% 8.33%
/growth-program/src/rewards/week_timekeeping.rs 51.85% 17.39% 33.33% 4.76%
/growth-program/src/rewards/withdraw.rs 8.75% 12.00% 40.00% 2.70%
/growth-program/src/validation.rs 68.18% 40.00% 66.67% 6.06%
/growth-program/tests/growth_program_setup/mod.rs 98.93% 95.65% 95.45% 95.45%
/growth-program/tests/test.rs 88.73% 85.71% 85.71% 85.71%
/metabonding/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/metabonding/src/access_control.rs 85.71% 20.00% 50.00% 7.14%
/metabonding/src/claim.rs 93.55% 85.71% 85.71% 16.07%
/metabonding/src/claim_progress.rs 95.61% 75.58% 81.82% 41.27%
/metabonding/src/common_storage.rs 100.00% 33.33% 100.00% 18.18%
/metabonding/src/legacy_storage_cleanup.rs 92.31% 72.73% 66.67% 4.76%
/metabonding/src/lib.rs 72.73% 60.00% 66.67% 8.22%
/metabonding/src/math.rs 88.89% 57.14% 66.67% 12.12%
/metabonding/src/project.rs 93.69% 81.13% 82.35% 17.05%
/metabonding/src/rewards.rs 96.04% 78.05% 90.91% 17.31%
/metabonding/src/validation.rs 95.00% 81.48% 80.00% 18.60%
/metabonding/tests/claim_partial_test.rs 100.00% 100.00% 100.00% 100.00%
/metabonding/tests/claim_progress_test.rs 100.00% 100.00% 100.00% 100.00%
/metabonding/tests/metabonding_setup/mod.rs 93.25% 90.41% 85.71% 43.81%
/metabonding/tests/rust_tests.rs 100.00% 100.00% 100.00% 100.00%
/pair-mock/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/pair-mock/src/pair.rs 100.00% 80.00% 100.00% 21.21%
/router-mock/meta/src/main.rs 0.00% 0.00% 0.00% 0.00%
/router-mock/src/router_mock.rs 100.00% 87.50% 100.00% 22.86%

@dorin-iancu dorin-iancu merged commit 05a3ba5 into main Jul 16, 2024
6 checks passed
@dorin-iancu dorin-iancu deleted the growth-program-audit-test-fixes branch July 16, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants