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

Base vaults and strategies upgrade & QSMF #100

Merged
merged 11 commits into from
Mar 5, 2024
Merged

Conversation

a17
Copy link
Member

@a17 a17 commented Mar 3, 2024

No description provided.

@a17 a17 linked an issue Mar 3, 2024 that may be closed by this pull request
6 tasks
Copy link

codecov bot commented Mar 3, 2024

Codecov Report

Attention: Patch coverage is 96.66667% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 93.69%. Comparing base (71ac9d2) to head (ad8118d).

Files Patch % Lines
src/core/base/VaultBase.sol 75.00% 0 Missing and 1 partial ⚠️
...rc/strategies/QuickSwapStaticMerklFarmStrategy.sol 97.22% 1 Missing ⚠️
src/strategies/libs/QSMFLib.sol 95.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   90.75%   93.69%   +2.94%     
==========================================
  Files          49       50       +1     
  Lines        3730     3697      -33     
  Branches      433      426       -7     
==========================================
+ Hits         3385     3464      +79     
+ Misses        205       97     -108     
+ Partials      140      136       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +35 to +37
if (farm.status == 0 && CommonLib.eq(farm.strategyLogicId, strategyId)) {
++total;
}

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: rules.solidity.performance.use-nested-if Note

Using nested is cheaper than using && multiple check combinations.
There are more advantages, such as easier to read code and better coverage reports.
Comment on lines +48 to +52
if (farm.status == 0 && CommonLib.eq(farm.strategyLogicId, strategyId)) {
nums[total] = i;
variants[total] = generateDescription(farm, _ammAdapter);
++total;
}

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: rules.solidity.performance.use-nested-if Note

Using nested is cheaper than using && multiple check combinations.
There are more advantages, such as easier to read code and better coverage reports.
@a17 a17 changed the title Base strategies upgrade Base strategies upgrade & QSMF Mar 5, 2024
@a17 a17 linked an issue Mar 5, 2024 that may be closed by this pull request
@a17 a17 changed the title Base strategies upgrade & QSMF Base vaults and strategies upgrade & QSMF Mar 5, 2024
@a17 a17 merged commit 5a22ba1 into main Mar 5, 2024
8 checks passed
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.

[DONE] QuickSwap Static Merkl Farm Base vaults and strategies upgrade
1 participant