-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix(YAUDIT-COVE-6): correct yearn vault v2 preview functions #302
Conversation
Changes to gas cost
🧾 Summary (10% most significant diffs)
Full diff report 👇
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #302 +/- ##
==========================================
- Coverage 97.57% 97.56% -0.01%
==========================================
Files 19 19
Lines 988 987 -1
Branches 203 202 -1
==========================================
- Hits 964 963 -1
Misses 1 1
Partials 23 23 ☔ View full report in Codecov by Sentry. |
Slither reportTHIS CHECKLIST IS NOT COMPLETE. Use |
Important
Coverage is currently disabled for this library due to forge limitations. TODO: Once the fix PR is merged, foundry-rs/foundry#7510 coverage should be re-enabled.
Describe your changes
Yearn Vault V2's deposit estimations cannot be made accurately with
pricePerShare
.Therefore we need to copy the logic used
Vault.vy
for converting new asset to shares into the router contract for more accurate preview methods.Relevant: https://github.com/yAudit/cove-report/issues/6
Checklist before requesting a review