Skip to content
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

Wip/vault-core-2 #4

Merged
merged 18 commits into from
Jul 20, 2023
Merged

Wip/vault-core-2 #4

merged 18 commits into from
Jul 20, 2023

Conversation

D23randomized
Copy link
Collaborator

  1. Updated VaultCore based on feedback from the previous PR
  2. Brought back RebaseManager and Dripper
  3. RebaseManager now skips rebase when the apr is too low
  4. Applied downside peg on minting in VaultCore
  5. Added isValidStrategy function in CollateralManager
  6. Fixed mismatched interface inIStrategy

contracts/vault/CollateralManager.sol Outdated Show resolved Hide resolved
contracts/vault/VaultCore.sol Outdated Show resolved Hide resolved
contracts/rebase/RebaseManager.sol Show resolved Hide resolved
contracts/rebase/RebaseManager.sol Outdated Show resolved Hide resolved
contracts/rebase/RebaseManager.sol Outdated Show resolved Hide resolved
contracts/vault/VaultCore.sol Outdated Show resolved Hide resolved
contracts/vault/VaultCore.sol Outdated Show resolved Hide resolved
contracts/vault/VaultCore.sol Outdated Show resolved Hide resolved
contracts/vault/VaultCore.sol Outdated Show resolved Hide resolved
contracts/rebase/RebaseManager.sol Show resolved Hide resolved
contracts/rebase/RebaseManager.sol Outdated Show resolved Hide resolved
D23randomized and others added 13 commits June 28, 2023 01:47
1. RebaseManager.fetchRebaseAmt() now does not trigger Dripper's collect() when the rebase is skipped
2. Assume USDs token contract is using an aggregated rebase() function
3. VaultCore.mintView() now returns 0 when downside peg check fails
4. Add the missing approval in VaultCore.allocate()
5. Other minor improvements
* Add natspec documentations
* Simplify mint and redeem function flow, resolve redundant function calls.
* Store collateral conversion factor at the time of adding collateral.
* Get strategy withdraw amount in redeemView()
…ilitator role

* Skip fee collection for facilitator role
* Send relevant mint and redeem information for calculating fee
* Reorder functions
* Make contract non-upgradeable
* Add recoverERC20 function
* Add nat-spec comments
* Add nat-spec comments
* Rename variables
@YashP16 YashP16 merged commit 09da7b7 into feat/vault-core Jul 20, 2023
@YashP16 YashP16 deleted the wip/vault-core-2 branch July 20, 2023 09:59
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.

2 participants