Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

Rounding Not Used

Summary

In ZlpVault rounding of _convertToShares is not used, getVaultAssetSwapRate always uses floor rounding. Consider passing it down to the function and using the specified rounding. Same applies for _convertToAssets

Impact

Wrong rounding in the mentioned functions.

Tools Used

Manual Review

Recommendations

Use the rounding specified in the call to the given functions instead of always using a floor rounding.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.