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

Removed fixed per-tranche mint cap #206

Merged
merged 11 commits into from
May 30, 2024
Merged

Removed fixed per-tranche mint cap #206

merged 11 commits into from
May 30, 2024

Conversation

aalavandhan
Copy link
Member

@aalavandhan aalavandhan commented Apr 28, 2024

  • Updated deposit tranche cap to be set based on the ratio of the deposit tranche value vs the remaining tranches
  • Exposing system DR on the perp and vault contracts
  • Added non-reentrant to external query methods on perp

Copy link

openzeppelin-code bot commented Apr 28, 2024

Removed fixed per-tranche mint cap

Generated at commit: 28afc6db49ebb683fadad493000d18abddd00eec

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
3
23
27
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@aalavandhan aalavandhan force-pushed the mint-cap-update branch 7 times, most recently from 46ac13e to b49b680 Compare April 30, 2024 02:32
@aalavandhan aalavandhan force-pushed the mint-cap-update branch 2 times, most recently from 37dbbe8 to 9c7c31d Compare May 10, 2024 02:17
Copy link
Member

@brandoniles brandoniles left a comment

Choose a reason for hiding this comment

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

Just the minor comment on the math rounding. I'm good with this accounting approach 👍

spot-contracts/contracts/PerpetualTranche.sol Outdated Show resolved Hide resolved
spot-contracts/contracts/PerpetualTranche.sol Show resolved Hide resolved
@aalavandhan aalavandhan force-pushed the mint-cap-update branch 3 times, most recently from 6bc721e to 0e16dbd Compare May 22, 2024 18:00
@aalavandhan aalavandhan force-pushed the mint-cap-update branch 2 times, most recently from 3aee939 to a06805a Compare May 22, 2024 18:59
@aalavandhan aalavandhan changed the title Removed fixed per-tranche mint cap Removed fixed per-tranche mint cap and added DR to interface May 22, 2024
@aalavandhan aalavandhan changed the title Removed fixed per-tranche mint cap and added DR to interface Removed fixed per-tranche mint cap May 22, 2024
@aalavandhan aalavandhan changed the base branch from main to dev May 24, 2024 21:10
Copy link
Member

@brandoniles brandoniles left a comment

Choose a reason for hiding this comment

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

LGTM

aalavandhan and others added 4 commits May 30, 2024 16:14
* bill broker

* BB Internal audit fixes (#210)

* internal audit fixes

* code review fixes

* Update spot-vaults/contracts/_interfaces/BillBrokerErrors.sol

Co-authored-by: Brandon Iles <brandon@fragments.org>

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>
@aalavandhan aalavandhan merged commit 5f74235 into dev May 30, 2024
1 check failed
@aalavandhan aalavandhan deleted the mint-cap-update branch May 30, 2024 20:30
aalavandhan added a commit that referenced this pull request Jun 21, 2024
* spot subgraph update (#207)

* Removed fixed per-tranche mint cap  (#206)

* updated per-tranche mint cap

* removed redundant constant

* added dr to the spot and vault interface

* added mintedSupplyPerTranche cleanup

* updated rounding

* updated unit test

* renamed constants in rollover vault to keep consistant with perp

* Bill broker (#203)

* bill broker

* BB Internal audit fixes (#210)

* internal audit fixes

* code review fixes

* Update spot-vaults/contracts/_interfaces/BillBrokerErrors.sol

Co-authored-by: Brandon Iles <brandon@fragments.org>

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>

* updated yarn lock

* bumped up ci version

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>

* ci config update

* Peck audit changes (#212)

* pve001

* pve002

* using msg.sender instead of _msgSender

* Perp upgrade and bill-broker deployment (#213)

* perp min-cap upgrade deployed to testnet

* mock contracts for testnet

* tasks to interact with bb

* oz testnet deployment

* updated yarn lock

* removed todo comment

* upgraded perp on mainnet

* bb mainnet deployment

* minor task updates

* Delete spot-contracts/notes.txt

deleted unused file

---------

Co-authored-by: Brandon Iles <brandon@fragments.org>
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