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: stVaults #874

Draft
wants to merge 912 commits into
base: develop
Choose a base branch
from

Merge pull request #966 from lidofinance/feat/separate-mints

cac27de
Select commit
Loading
Failed to load commit list.
Draft

feat: stVaults #874

Merge pull request #966 from lidofinance/feat/separate-mints
cac27de
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / Slither succeeded Feb 28, 2025 in 3s

12 new alerts including 12 medium severity security vulnerabilities

New alerts in code changed by this pull request

Security Alerts:

  • 12 medium

Alerts not introduced by this pull request might have been detected because the code changes were too large.

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 100 in contracts/0.8.25/vaults/Dashboard.sol

See this annotation in the file changed.

Code scanning / Slither

Unused return Medium

Check warning on line 180 in contracts/0.8.25/vaults/StakingVault.sol

See this annotation in the file changed.

Code scanning / Slither

Potential Arithmetic Overflow Medium

StakingVault.valuation() contains integer variables whose type is larger than the type of one of its intermediate expressions. Consider casting sub expressions explicitly as they might lead to unexpected overflow:
In [uint256(int256(int128($.report.valuation) + $.inOutDelta - $.report.inOutDelta))](contracts/0.8.25/vaults/StakingVault.sol#L179) intermidiate expressions returns type of lower order:
... + REF_1086 returns int128, but the type of the resulting expression is uint256.

Check warning on line 262 in contracts/0.8.9/Burner.sol

See this annotation in the file changed.

Code scanning / Slither

Token Approve Warning Medium

Burner recoverERC721 parameter from is not related to msg.sender IERC721(_token).transferFrom(address(this),LOCATOR.treasury(),_tokenId)

Check warning on line 188 in contracts/0.8.9/WithdrawalVault.sol

See this annotation in the file changed.

Code scanning / Slither

Divide before multiply Medium

Check warning on line 188 in contracts/0.8.9/WithdrawalVault.sol

See this annotation in the file changed.

Code scanning / Slither

Dangerous strict equalities Medium