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

feat: Using more common #90

Merged
merged 1 commit into from
Oct 30, 2024
Merged

feat: Using more common #90

merged 1 commit into from
Oct 30, 2024

Conversation

deluca-mike
Copy link
Collaborator

No description provided.

@deluca-mike deluca-mike added the enhancement New feature or request label Oct 30, 2024
@deluca-mike deluca-mike self-assigned this Oct 30, 2024
Copy link

github-actions bot commented Oct 30, 2024

Changes to gas cost

Generated at commit: d44ddef6d40741f26fe2ed9d5f279d2d61ad6ce4, compared to commit: d80e99192e6ee25993161a2e5d05f53dc876fec0

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %
SmartMTokenHarness claimFor +1,003 ❌ +1.10%

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
SmartMTokenHarness 5,530,321 (0) balanceOf
claimFor
setPrincipalOfTotalEarningSupply
setTotalEarningSupply
stopEarningFor(address)
totalEarningSupply
totalNonEarningSupply
transfer
unwrap(address)
unwrap(address,uint256)
wrap(address,uint256)
634 (0)
5,164 (0)
2,583 (0)
2,561 (0)
8,630 (0)
436 (0)
414 (0)
3,074 (0)
3,114 (0)
508 (0)
484 (0)
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
718 (-3)
92,255 (+1,003)
17,815 (+58)
21,575 (+44)
64,396 (+115)
854 (-2)
452 (-1)
23,532 (+25)
52,435 (+333)
44,628 (+2,319)
65,316 (-35)
-0.42%
+1.10%
+0.33%
+0.20%
+0.18%
-0.23%
-0.22%
+0.11%
+0.64%
+5.48%
-0.05%
634 (0)
91,107 (+17)
22,483 (0)
22,461 (0)
65,960 (0)
436 (0)
414 (0)
16,234 (0)
51,784 (0)
51,308 (0)
72,331 (0)
0.00%
+0.02%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
2,634 (0)
135,183 (0)
22,483 (0)
22,461 (0)
65,960 (0)
2,436 (0)
2,414 (0)
55,379 (0)
78,575 (0)
76,937 (0)
96,389 (0)
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
1,976 (+12)
106 (0)
343 (0)
447 (0)
102 (0)
669 (+3)
975 (+4)
210 (0)
296 (-1)
101 (0)
298 (-1)
MockM 425,516 (0) balanceOf
currentIndex
isEarning
setBalanceOf
setCurrentIndex
549 (0)
334 (0)
572 (0)
24,181 (0)
23,746 (0)
0.00%
0.00%
0.00%
0.00%
0.00%
1,391 (+1)
1,547 (-2)
2,521 (+1)
43,883 (+23)
26,696 (-2)
+0.07%
-0.13%
+0.04%
+0.05%
-0.01%
549 (0)
2,334 (0)
2,572 (0)
44,189 (0)
26,570 (0)
0.00%
0.00%
0.00%
0.00%
0.00%
2,549 (0)
2,334 (0)
2,572 (0)
44,441 (0)
43,646 (0)
0.00%
0.00%
0.00%
0.00%
0.00%
3,282 (+10)
3,231 (0)
590 (+6)
916 (0)
1,767 (0)
EarnerManager 1,377,197 (-24)
EarnerManagerHarness 1,428,311 (+12)

Copy link

github-actions bot commented Oct 30, 2024

LCOV of commit d861187 during Forge Coverage #408

Summary coverage rate:
  lines......: 97.6% (242 of 248 lines)
  functions..: 95.4% (62 of 65 functions)
  branches...: 92.0% (46 of 50 branches)

Files changed coverage rate:
                               |Lines       |Functions  |Branches    
  Filename                     |Rate     Num|Rate    Num|Rate     Num
  ===================================================================
  src/EarnerManager.sol        | 100%     63| 100%    15|95.0%     20
  src/SmartMToken.sol          |98.4%    182|95.9%    49|90.0%     30

Base automatically changed from feata/smart-m-token to main October 30, 2024 20:22
@deluca-mike deluca-mike merged commit 963457d into main Oct 30, 2024
4 checks passed
@deluca-mike deluca-mike deleted the feat/use-more-common branch October 30, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants