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

Update MultiInvoker for native USDC support #212

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

arjun-io
Copy link
Collaborator

No description provided.

@arjun-io arjun-io requested a review from kbrizzle June 18, 2024 14:00
Copy link

Integration Test Coverage Report

Coverage after merging arjun/update-multiinvoker into master will be
94.03%
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.sol75.96%48.44%88.37%92.11%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, 355, 355–356, 376, 386, 392, 399, 60, 85
   UControllerProvider.sol84.62%62.50%100%100%33–34, 40, 47, 54, 61
packages/perennial/contracts/incentivizer
   Incentivizer.sol81.82%58.62%100%96.67%128, 140, 153, 166, 168, 183–184, 201, 213, 300, 310, 332, 339, 42–45, 50–53, 83–86, 97
packages/perennial/contracts/incentivizer/types
   ProductManager.sol94.03%75%100%97.73%158–159, 163, 223
   Program.sol100%100%100%100%
packages/perennial/contracts/interfaces
   ICollateral.sol100%100%100%100%
   IContractPayoffProvider.sol100%100%100%100%
   IController.sol100%100%100%100%
   IIncentivizer.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
   IMultiInvokerRollup.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.sol98.19%94.23%100%100%356, 372, 50
   MultiInvokerRollup.sol91.84%85%92.86%94.62%187, 219, 225–226, 228, 239–240, 240, 240, 298, 71
packages/perennial/contracts/product
   Product.sol84.97%68.25%97.62%98.31%136, 208, 212–216, 244, 246–249, 281, 285–290, 318, 320–324, 346, 346, 47, 494, 494, 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%

Copy link

Unit Test Coverage Report

Coverage after merging arjun/update-multiinvoker into master will be
98.68%
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/incentivizer
   Incentivizer.sol95.80%89.66%100%100%140, 153, 166, 185, 42, 83
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%
   IIncentivizer.sol100%100%100%100%
   IMultiInvoker.sol100%100%100%100%
   IMultiInvokerRollup.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.sol92.77%90.38%95.24%93.55%156–157, 159, 372, 386, 386, 386–388, 390, 49
   MultiInvokerRollup.sol92.52%90%92.86%93.55%180, 187, 187–190, 192, 240, 250–251
packages/perennial/contracts/product
   Product.sol91.61%80.95%100%100%136, 208, 212–214, 216, 244, 247–248, 281, 285, 287–288, 290, 318, 320–323, 346, 346, 494, 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

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