-
Notifications
You must be signed in to change notification settings - Fork 12
Release V5.0.0 #244
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
Release V5.0.0 #244
Conversation
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.0 to 2.3.3. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](coverallsapp/github-action@v2.3.0...v2.3.3) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.3 to 2.3.4. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](coverallsapp/github-action@v2.3.3...v2.3.4) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* removed pricing strategies in favor of meta oracle * Bill broker refactor, using new meta oracle * Charm vault refactor, using new meta oracle * Updated Interfaces and Errors * updated unit tests * code review changes
Apply suggestions from code review Co-authored-by: Brandon Iles <brandon@fragments.org> review fix caching bool instead of prev deviation
* deployed new oracle and managers * updated readme
* staking subgraph, refreshing store on rebase * charm wampl vault subgraph
* adds timestamp to swap events subgraph Signed-off-by: nms-7 <nixon.ubud@gmail.com> * linting Signed-off-by: nms-7 <nixon.ubud@gmail.com> * fixed null swap creation with 0 timestamp Signed-off-by: nms-7 <nixon.ubud@gmail.com> --------- Signed-off-by: nms-7 <nixon.ubud@gmail.com>
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.4 to 2.3.6. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](coverallsapp/github-action@v2.3.4...v2.3.6) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* using fee factor instead of percentages to support -ve fees * unit tests * code review * convergent fee curve
* fee curve update * code review fixes
* rollover fee handles undersubscribed vault * bumped up hardhat * code review comments
Release V5.0.0
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
Co-authored-by: Brandon Iles <brandon@fragments.org>
Co-authored-by: Brandon Iles <brandon@fragments.org>
Rebalancing updates
Pair operations
Removed rollover fees in favor of daily rebalance
Restructuring perp/vault fees
Cleanup - Migrated to ethers v6
DR based flash swap fees
spot-vaults/contracts/BillBroker.sol
Outdated
| return 0; | ||
| } | ||
|
|
||
| // We compute equal value of perp tokens going out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // We compute equal value of perp tokens going out. |
spot-vaults/contracts/BillBroker.sol
Outdated
| // The mint fees are waived, because single sided deposits | ||
| // push the pool back into balance. | ||
| uint256 percOfAmtInSwapped = ONE.mulDiv( | ||
| usdAmtIn - (s.usdBalance + usdAmtIn).mulDiv(mintAmt, totalSupply_), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| usdAmtIn - (s.usdBalance + usdAmtIn).mulDiv(mintAmt, totalSupply_), | |
| usdAmtIn - (s.usdBalance + usdAmtIn).mulDiv(mintAmt, totalSupply_ + mintAmt), |
spot-vaults/contracts/BillBroker.sol
Outdated
| ) | ||
| : 0; | ||
| // Compute mint amount. | ||
| mintAmt = (totalReserveVal > 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove the 0 check, given we already do it right above.
spot-vaults/contracts/BillBroker.sol
Outdated
| // The mint fees are waived, because single sided deposits | ||
| // push the pool back into balance. | ||
| uint256 percOfAmtInSwapped = ONE.mulDiv( | ||
| perpAmtIn - (s.perpBalance + perpAmtIn).mulDiv(mintAmt, totalSupply_), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| perpAmtIn - (s.perpBalance + perpAmtIn).mulDiv(mintAmt, totalSupply_), | |
| perpAmtIn - (s.perpBalance + perpAmtIn).mulDiv(mintAmt, totalSupply_ + mintAmt), |
* fee policy restructure * updated perp fee and rebalance handling, audit cleanup * updated vault fee and rebalance handling, audit cleanup * interface and lib updates * updated unit tests * code review fixes #1 * code review fixes #2 * code review fix #3 * Removed subscription ratio for a global vault:perp tvl (or system ratio) (#254) * Using a system ratio target * using system state to calculate fees * using system state for fees and removed subscription liquidity check * interface updates * unit test updates * rename
No description provided.