Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Decrease Bravo vault target leverage #199

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

arjun-io
Copy link
Collaborator

@arjun-io arjun-io commented Jul 5, 2023

@arjun-io arjun-io requested a review from kbrizzle July 5, 2023 19:18
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Unit Test Coverage Report

Coverage after merging arjun/decrease-bravo-lev into master will be
99.89%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts/collateral
   Collateral.sol93.57%85%100%100%110, 113, 236, 53, 57, 86, 91–93
packages/perennial/contracts/collateral/types
   OptimisticLedger.sol100%100%100%100%
packages/perennial/contracts/controller
   Controller.sol100%100%100%100%
   UControllerProvider.sol97.44%93.75%100%100%33
packages/perennial/contracts/forwarder
   Forwarder.sol91.67%75%100%100%39–40
packages/perennial/contracts/incentivizer
   Incentivizer.sol95.71%89.29%100%100%141, 154, 167, 186, 42, 82
packages/perennial/contracts/incentivizer/types
   ProductManager.sol100%100%100%100%
   Program.sol100%100%100%100%
packages/perennial/contracts/interfaces
   ICollateral.sol100%100%100%100%
   IContractPayoffProvider.sol100%100%100%100%
   IController.sol100%100%100%100%
   IForwarder.sol100%100%100%100%
   IIncentivizer.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
   IParamProvider.sol100%100%100%100%
   IPayoffProvider.sol100%100%100%100%
   IPerennialLens.sol100%100%100%100%
   IProduct.sol100%100%100%100%
packages/perennial/contracts/interfaces/types
   Accumulator.sol100%100%100%100%
   PackedAccumulator.sol100%100%100%100%
   PackedPosition.sol100%100%100%100%
   PayoffDefinition.sol91.67%75%100%100%61, 66, 79
   PendingFeeUpdates.sol90.70%60%100%100%34, 51, 68, 80
   Position.sol100%100%100%100%
   PrePosition.sol100%100%100%100%
   ProgramInfo.sol100%100%100%100%
packages/perennial/contracts/lens
   PerennialLens.sol87.06%53.57%100%100%103, 168, 177, 186, 195, 205, 214, 226, 240, 250, 261, 274, 292, 302, 312, 322, 334, 348, 363, 375, 387, 399, 423, 437, 464, 65
packages/perennial/contracts/multiinvoker
   MultiInvoker.sol98.51%95.65%100%100%285, 49
packages/perennial/contracts/product
   Product.sol91.84%81.15%100%100%136, 208, 212–214, 216, 244, 247–248, 281, 285, 287–288, 290, 318, 320–323, 346, 346, 494, 68
   UParamProvider.sol91.93%79.03%100%100%113, 132, 144, 167, 179, 202, 214, 236, 254, 254, 262, 36, 94
   UPayoffProvider.sol96%83.33%100%100%33
packages/perennial/contracts/product/types/accumulator
   AccountAccumulator.sol100%100%100%100%
   VersionedAccumulator.sol100%100%100%100%
packages/perennial/contracts/product/types/position
   AccountPosition.sol100%100%100%100%
   VersionedPosition.sol100%100%100%100%
packages/perennial/contracts/test
   TestnetBatcher.sol100%100%100%100%
   TestnetDSU.sol100%100%100%100%
   TestnetProductProvider.sol100%100%100%100%
   TestnetReserve.sol100%100%100%100%
   TestnetUSDC.sol100%100%100%100%
   TestnetVault.sol88.24%100%80%91.67%44

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Integration Test Coverage Report

Coverage after merging arjun/decrease-bravo-lev into master will be
94.04%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/perennial/contracts/collateral
   Collateral.sol83.57%65%100%96.72%110, 112–113, 120–121, 161, 212, 236, 236, 246, 257, 278–279, 53, 55–57, 86, 88–89, 91–93
packages/perennial/contracts/collateral/types
   OptimisticLedger.sol100%100%100%100%
packages/perennial/contracts/controller
   Controller.sol77.40%50%88.37%93.24%126, 140, 153, 166–167, 181–182, 191–192, 201–202, 211–212, 221–222, 232–233, 243–244, 254–255, 265, 274, 283, 292, 312, 320, 329, 337, 355, 375, 390, 397, 60, 85
   UControllerProvider.sol84.62%62.50%100%100%33–34, 40, 47, 54, 61
packages/perennial/contracts/forwarder
   Forwarder.sol83.33%50%100%100%37–40
packages/perennial/contracts/incentivizer
   Incentivizer.sol82.86%60.71%100%96.67%129, 141, 154, 167, 169, 184–185, 202, 214, 324, 331, 42–45, 50–53, 82–85, 96
packages/perennial/contracts/incentivizer/types
   ProductManager.sol94.12%75%100%97.78%162–163, 167, 228
   Program.sol100%100%100%100%
packages/perennial/contracts/interfaces
   ICollateral.sol100%100%100%100%
   IContractPayoffProvider.sol100%100%100%100%
   IController.sol100%100%100%100%
   IForwarder.sol100%100%100%100%
   IIncentivizer.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
   IParamProvider.sol100%100%100%100%
   IPayoffProvider.sol100%100%100%100%
   IPerennialLens.sol100%100%100%100%
   IProduct.sol100%100%100%100%
packages/perennial/contracts/interfaces/types
   Accumulator.sol100%100%100%100%
   PackedAccumulator.sol100%100%100%100%
   PackedPosition.sol100%100%100%100%
   PayoffDefinition.sol77.78%41.67%100%94.12%39, 42, 60–61, 65–66, 66, 79
   PendingFeeUpdates.sol93.02%70%100%100%34, 51, 68
   Position.sol100%100%100%100%
   PrePosition.sol100%100%100%100%
   ProgramInfo.sol80%33.33%100%100%51–52, 52, 52
packages/perennial/contracts/lens
   PerennialLens.sol86.07%51.79%100%99.07%103, 168, 177, 186, 195, 205, 214, 226, 240, 250, 261, 274, 292, 302, 312, 322, 334, 348, 363, 375, 387, 399, 404–405, 423, 437, 464, 65
packages/perennial/contracts/multiinvoker
   MultiInvoker.sol97.76%93.48%100%100%269, 285, 50
packages/perennial/contracts/product
   Product.sol85.46%68.85%97.62%98.31%136, 208, 212–216, 244, 246–249, 281, 285–290, 318, 320–324, 346, 346, 47, 494, 505, 505–506, 515, 534, 541, 548–549, 554, 569, 68
   UParamProvider.sol83.85%64.52%93.55%97.06%103, 113, 122, 132, 144, 157, 167, 179, 192, 202, 214, 236, 236, 236, 236–237, 254, 286, 36, 94, 94, 94, 94–95
   UPayoffProvider.sol88%50%100%100%33, 36, 63
packages/perennial/contracts/product/types/accumulator
   AccountAccumulator.sol100%100%100%100%
   VersionedAccumulator.sol100%100%100%100%
packages/perennial/contracts/product/types/position
   AccountPosition.sol92.86%50%100%100%107, 107
   VersionedPosition.sol100%100%100%100%
packages/perennial/contracts/test
   TestnetBatcher.sol0%100%0%0%16–18, 20–21, 25, 30–32, 34, 39–41, 43, 48
   TestnetDSU.sol0%0%0%0%18, 21, 21–22, 22, 22, 24, 27, 27–28, 30, 34, 34, 34–35
   TestnetProductProvider.sol100%100%100%100%
   TestnetReserve.sol0%100%0%0%15–16, 20–21, 23–24, 28–30, 32–33, 37, 41
   TestnetUSDC.sol0%100%0%0%12, 16
   TestnetVault.sol100%100%100%100%

@arjun-io arjun-io merged commit 31a01a5 into master Jul 11, 2023
@arjun-io arjun-io deleted the arjun/decrease-bravo-lev branch July 11, 2023 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants