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

refactor: reduce strategy contract size #177

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

0xsambugs
Copy link
Collaborator

@0xsambugs 0xsambugs commented Jan 27, 2025

We are now doing some small refactors to reduce the strategy's contract size

@0xsambugs 0xsambugs self-assigned this Jan 27, 2025
Copy link

Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results.
Summary

@0xsambugs 0xsambugs requested a review from 0xKoaj January 27, 2025 14:32
@@ -147,7 +135,8 @@ abstract contract ExternalFees is BaseFees, ReentrancyGuard, Initializable {
Fees memory fees = _getFees();
(tokens, balances) = _fees_underlying_totalBalances();
for (uint256 i; i < tokens.length; ++i) {
balances[i] -= _calculateFees(tokens[i], balances[i], fees.performanceFee);
uint256 balance = balances[i];
balances[i] = balance - _calculateFees(tokens[i], balance, fees.performanceFee);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮

Copy link
Contributor

@0xKoaj 0xKoaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@0xsambugs 0xsambugs merged commit 5566df3 into main Jan 27, 2025
5 checks passed
@0xsambugs 0xsambugs deleted the feat/reduce-strategy-contract-size branch January 27, 2025 14:39
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