-
Notifications
You must be signed in to change notification settings - Fork 98
[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
Open
clement-ux
wants to merge
103
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.
+3,736
−9,265
Open
Changes from all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
cf1e4c6
Refactor OETHVaultCore and VaultCore to simplify asset handling and r…
clement-ux cdf5ee8
Add constructors to MockVault and MockVaultCoreInstantRebase for init…
clement-ux 17ef9fb
Refactor OETHVaultCore and VaultCore to implement async withdrawal fu…
clement-ux 7c38699
Refactor OETHVaultCore and VaultCore to remove unused functions and s…
clement-ux be6a697
Remove unused addWithdrawalQueueLiquidity function from OETHVaultCore…
clement-ux f49fa28
Refactor OETHVaultCore and VaultCore to remove unused imports and fun…
clement-ux 9d58bde
Remove unused pricing functions and related imports in VaultCore to s…
clement-ux d480ca9
Update constructor parameter in OETHVaultCore to use _weth for clarity
clement-ux 311fa8b
Add OUSDVaultCore contract and implement redeem functionality with ac…
clement-ux aedd14f
Refactor OETHVaultAdmin and VaultAdmin contracts to simplify code and…
clement-ux 4a2a265
Refactor vault admin contracts to remove constructors and simplify in…
clement-ux 87bf396
Refactor vault contracts to enforce backing asset restrictions and re…
clement-ux 2c41717
Refactor VaultAdmin and VaultStorage contracts to simplify default st…
clement-ux f520e69
Refactor AbstractHarvester and related contracts to integrate oracle …
clement-ux 3dd4788
Revert changes on Harvester
clement-ux 16ab03b
remove old code
clement-ux 3833da5
Refactor vault admin contracts to include backing asset address in co…
clement-ux 0cd238a
Refactor OETH Vault tests to simplify strategy handling and improve e…
clement-ux 2fce2d5
adjust decimal logic in VaultStorage
clement-ux 0d931d4
wip fix test
clement-ux 3d864d1
Refactor scaling logic in VaultCore to use scaleBy function for impro…
clement-ux b7b2445
Refactor Compound strategy tests to simplify logic and improve clarit…
clement-ux 9705708
Refactor Vault tests to simplify logic by removing unused variables a…
clement-ux ceb6f82
Refactor Vault tests to simplify code by removing unused variables an…
clement-ux e2bb9e0
Refactor Vault redeem tests to simplify logic by removing unused vari…
clement-ux c7ce0f2
fix buyback fixture
clement-ux f9fbe28
Refactor Reborner contract and tests to use USDC instead of USDS, upd…
clement-ux 377f32e
Refactor compoundingStakingSSVStrategyFixture to simplify default str…
clement-ux 33c7e9a
Refactor Convex strategy tests to use USDC instead of USDS and simpli…
clement-ux e336f3e
Refactor MockVaultCoreInstantRebase constructor to accept backing ass…
clement-ux ac3684d
fix remaining unit test
clement-ux caf0e13
fix base setup
clement-ux fca7c79
fix sonic setup
clement-ux ba2591c
Add slither-disable comments for reentrancy checks in mint functions
clement-ux 9a81eb3
Remove collateral swaps test file to streamline testing suite
clement-ux c5796c2
Add OUSDVaultAdmin contract and deployment script for OUSD Vault upgrade
clement-ux 1db6636
fix vault fork test
clement-ux 5c75d06
prettier
clement-ux d8ca994
fix more fork tests
clement-ux 5c5af35
lint
clement-ux 510b8ad
fix more tests
clement-ux d99f2e2
fix sonic fork test
clement-ux 3560f0d
lint + prettier
clement-ux a6709b6
skip plume test
clement-ux 8613c72
fix sonic fork test
clement-ux 8f28790
fix sonic fork test
clement-ux 2238a92
remove .only
clement-ux 10e9644
remove old fix
clement-ux cd7b9bd
fix decimal conversion
clement-ux db1c4bf
refactor: change contracts to abstract for VaultAdmin, VaultCore, Vau…
clement-ux e4d7c73
fix test
clement-ux 94b81f5
WIP add async withdraw test for OUSD
clement-ux e72adab
Add lot of test for async withdraw
clement-ux 38a00fa
adjust comment
clement-ux b61e10e
refactor: remove setDripper function from IVault interface
clement-ux 09131ae
fix: update redeem function to use correct amount parameter
clement-ux 39bbbfb
feat: add deprecated weth asset index to OETHVaultCore contract
clement-ux 1b40aca
Merge branch 'master' into clement/simplify-ousd
clement-ux ebe97cd
increase ousd vault upgrade number
clement-ux 94d39ed
fix: add slither disable comment for constable-states in OETHVaultCor…
clement-ux 780d20b
fix: correct drip duration initialization in VaultInitializer contract
clement-ux 48c661d
feat: deprecate calculateRedeemOutputs and introduce calculateRedeemO…
clement-ux c21040a
refactor: rename backingAsset to asset across contracts for consistency
clement-ux 0c4325a
refactor: change visibility of deprecated asset-related mappings to p…
clement-ux 746f517
fix: improve error message for unsupported asset decimals in VaultSto…
clement-ux a3da207
fix: update error message for unsupported asset in minting process
clement-ux d792893
refactor: update comments to clarify AMO strategy references in mint …
clement-ux 5de1870
refactor: standardize terminology by replacing 'backing asset' with '…
clement-ux ac929c6
refactor: simplify redeem output calculation by removing deprecated f…
clement-ux b7e25e2
refactor: streamline redeem output calculation by consolidating retur…
clement-ux 0db0931
refactor: improve clarity in comments regarding AMO strategy in mint …
clement-ux d6e5f7d
refactor: mark isSupportedAsset function as deprecated
clement-ux e0bfdbc
[Vault] Simplify `mint()` (#2735)
clement-ux cf0d427
Merge branch 'master' into clement/simplify-ousd
clement-ux d936abd
Merge branch 'master' into clement/simplify-ousd
clement-ux 5bf6ee7
Clement/simplify ousd get rid of old stuff (#2736)
clement-ux 6258a96
[Vault] Remove `redeem()` and simplify inheritance. (#2737)
clement-ux 7a6b95d
Merge remote-tracking branch 'origin/master' into clement/simplify-ousd
naddison36 198b7f5
Removed Beacon consolidation fork tests
naddison36 0bdbc08
Add OETH vault upgrade deployment script with governance proposal
clement-ux 115655b
Remove deprecated redeem tests from OETH vault and bridge helper test…
clement-ux f9a9420
lint
clement-ux 8211332
Add vault upgrade deployment script and skip deprecated tests in brid…
clement-ux 60a2127
prettier
clement-ux 536b0ac
Add deployment script for OSonic vault upgrade with governance actions
clement-ux 8b073b8
Refactor OETH and OSonic VaultAdmin contracts to inherit from VaultAdmin
clement-ux e9ee43c
New gov prop of deploy script 163
naddison36 777b43b
Merge remote-tracking branch 'origin/master' into nicka/deploy-163-re…
naddison36 a9f3295
Simplify withdrawal amount calculations in VaultCore contract
clement-ux a306e08
Merge branch 'master' into clement/simplify-ousd
clement-ux 8d40e03
fix bug
clement-ux 15b5534
Merge remote-tracking branch 'origin/master' into nicka/deploy-163-re…
naddison36 e05bb2a
[Vault] Merge VaultAdmin and VaultCore (#2743)
clement-ux 71f9057
Removed commented out IOracle lines from Harvester
naddison36 33a0b74
Merge remote-tracking branch 'origin/nicka/deploy-163-redeem-fee' int…
naddison36 81f1ed2
Changed the OUSD default strategy to the Morpho OUSD v2 strategy
naddison36 29639b3
Rename OSonicVault to OSVault in deployment script
clement-ux 0f4e29c
Merge remote-tracking branch 'origin/master' into clement/simplify-ousd
naddison36 d4a64ac
Refactor rebase and withdrawal queue liquidity calls in VaultAdmin co…
clement-ux bedc291
Add slither disable comments for reentrancy checks in VaultAdmin cont…
clement-ux 7614984
Removed dependency on OracleRouter from the OUSD and SuperOETH Vaults
naddison36 42bca4a
Merge remote-tracking branch 'origin/master' into clement/simplify-ousd
naddison36 b616bf4
Bumped the deploy script numbers
naddison36 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,18 @@ | ||
| // SPDX-License-Identifier: BUSL-1.1 | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { OETHVaultCore } from "../vault/OETHVaultCore.sol"; | ||
| import { OETHVault } from "../vault/OETHVault.sol"; | ||
| import { StableMath } from "../utils/StableMath.sol"; | ||
| import "../utils/Helpers.sol"; | ||
|
|
||
| contract MockOETHVault is OETHVaultCore { | ||
| contract MockOETHVault is OETHVault { | ||
| using StableMath for uint256; | ||
|
|
||
| constructor(address _weth) OETHVaultCore(_weth) { | ||
| constructor(address _weth) OETHVault(_weth) { | ||
| _setGovernor(msg.sender); | ||
| } | ||
|
|
||
| function supportAsset(address asset) external { | ||
| assets[asset] = Asset({ | ||
| isSupported: true, | ||
| unitConversion: UnitConversion(0), | ||
| decimals: 18, | ||
| allowedOracleSlippageBps: 0 | ||
| }); | ||
|
|
||
| allAssets.push(asset); | ||
| require(asset == asset, "Only asset supported"); | ||
| } | ||
| } |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.