Skip to content

Conversation

@clement-ux
Copy link
Collaborator

@clement-ux clement-ux commented Jan 7, 2026

Description

Simplify mint() on the VaultCore, by removing old params that are no longer relevant:

  • asset, because Vault are now single asset.
  • minimumOusdAmount, because always minted 1:1

Simplify VaultStorage, by removing old Struct and constants.

Note:

  • We keep old mint() signature (with 3 args) for backward compatibility, but mark it as deprecated.
  • I had to make some small changes on OETHPlumeVaultCore, but as the project itself is deprecated, it shouldn't be an issue.

@clement-ux clement-ux changed the title Clement/simplify ousd get rid of old stuff [Vault] Simplify mint() Jan 7, 2026
@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.20%. Comparing base (b7e25e2) to head (955b851).
⚠️ Report is 3 commits behind head on clement/simplify-ousd.

Files with missing lines Patch % Lines
contracts/contracts/vault/VaultCore.sol 60.00% 2 Missing ⚠️
contracts/contracts/vault/OETHPlumeVaultCore.sol 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##           clement/simplify-ousd    #2735      +/-   ##
=========================================================
+ Coverage                  33.51%   34.20%   +0.68%     
=========================================================
  Files                        128      128              
  Lines                       5517     5514       -3     
  Branches                    1463     1460       -3     
=========================================================
+ Hits                        1849     1886      +37     
+ Misses                      3667     3627      -40     
  Partials                       1        1              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@naddison36 naddison36 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DVF would be proud of all the red


/// @dev mapping of supported vault assets to their configuration
mapping(address => Asset) internal _deprecated_assets;
mapping(address => uint256) internal _deprecated_assets;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified further to just
uint256 private _deprecated_assets;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! Changed in this commit: 955b851.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was suggesting to go one step further by getting rid of the mapping. eg
mapping(address => uint256) private _deprecated_assets;
becomes
uint256 private _deprecated_assets;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed in this commit d0c45e6.
I merged the PR a bit too fast. I just opened new one here #2736

@clement-ux clement-ux merged commit e0bfdbc into clement/simplify-ousd Jan 7, 2026
14 of 17 checks passed
@clement-ux clement-ux deleted the clement/simplify-ousd-get-rid-of-old-stuff branch January 7, 2026 11:13
@clement-ux clement-ux restored the clement/simplify-ousd-get-rid-of-old-stuff branch January 7, 2026 11:14
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.

3 participants