-
Notifications
You must be signed in to change notification settings - Fork 95
[Vault] Simplify VaultCore. #2714
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
Draft
clement-ux
wants to merge
52
commits into
master
Choose a base branch
from
clement/simplify-ousd
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…emove WETH dependencies
…implify total value calculations
… and clean up comments in VaultCore
…ctions, simplifying the codebase.
…implify the codebase.
… improve clarity by removing deprecated functions and updating asset handling methods.
…itialization by using address(0) for backing asset.
…move deprecated asset handling
…rategy handling for backing asset
…address, simplifying price retrieval and enhancing clarity
…nstructors for improved clarity and functionality
…ved clarity and consistency
…y by removing unused variables and consolidating test cases
…nd consolidating test cases
…d consolidating test cases
…ables and consolidating test cases
…ate mint and redeem amounts for consistency
…fy asset handling
…et address, update test fixtures to use USDC instead of USDS, and simplify Dripper and VaultValueChecker tests by removing unused variables and consolidating logic.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2714 +/- ##
==========================================
- Coverage 41.10% 36.15% -4.95%
==========================================
Files 126 128 +2
Lines 5778 5504 -274
Branches 1537 1463 -74
==========================================
- Hits 2375 1990 -385
- Misses 3401 3513 +112
+ Partials 2 1 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ltInitializer, and VaultStorage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request makes significant changes to the
IVaultinterface and related contracts, primarily removing price provider and swapper logic, simplifying asset management, and updating mocks and strategies to align with these changes. The main goal is to streamline the vault contract interfaces and deprecate unused or redundant features.Key changes include:
1. Removal of Price Provider and Swapper Logic
IVaultinterface, includingpriceProvider,setPriceProvider, swap functions, and related events. [1] [2] [3] [4] [5]AbstractHarvesterto no longer require a price provider; now uses a dummy address for oracle in swap operations, as the contract is deprecated. [1] [2]BridgedWOETHStrategyto accept an immutable oracle address in the constructor instead of fetching from the vault. [1] [2] [3]2. Simplification and Refactoring of Asset and Strategy Management
IVaultby removing per-asset strategy support and related events, replacing them with a singledefaultStrategyand associated functions/events. [1] [2]backingAssetas supported. [1] [2]3. Updates to Mocks and Test Contracts
MockVault,MockVaultCoreInstantRebase,MockOETHVault,MockOETHVaultAdmin,MockEvilReentrantContract,MockRebornMinter) to align with the new interface, constructor signatures, and removed price provider logic. [1] [2] [3] [4] [5] [6] [7] [8]4. Event and Function Cleanup
IVaultto reflect the simplified design, including asset, swap, and strategy-related events. Added or renamed events for default strategy and withdrawal claim delay. [1] [2]5. Miscellaneous Cleanups
OETHVaultcontract, which was simply extendingVaultwithout additional logic.These changes help reduce contract complexity, remove unused features, and prepare the codebase for future upgrades.
Code Change Checklist
To be completed before internal review begins:
Internal review:
Deploy checklist
Two reviewers complete the following checklist: