diff --git a/.gas-snapshot b/.gas-snapshot index ae719d7..bc60ce8 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,87 +1,92 @@ -CashEngineProxyTest:testCanUpgradeToAnotherUUPSContract() (gas: 753771) -CashEngineProxyTest:testCannotPermitAccountAccessCrossProxy() (gas: 540932) -CashEngineProxyTest:testCannotUpgradeFromNonOwner() (gas: 16158) -CashEngineProxyTest:testCannotUpgradeTov3() (gas: 1488991) -CashEngineProxyTest:testImplementationContractOwnerIsZero() (gas: 7761) +CashEngineProxyTest:testCanUpgradeToAnotherUUPSContract() (gas: 753749) +CashEngineProxyTest:testCannotPermitAccountAccessCrossProxy() (gas: 516088) +CashEngineProxyTest:testCannotUpgradeFromNonOwner() (gas: 16136) +CashEngineProxyTest:testCannotUpgradeTov3() (gas: 1488969) +CashEngineProxyTest:testImplementationContractOwnerIsZero() (gas: 7739) CashEngineProxyTest:testImplementationIsInitialized() (gas: 11034) CashEngineProxyTest:testProxyIsInitialized() (gas: 15907) -CashEngineProxyTest:testProxyOwnerIsSelf() (gas: 12643) +CashEngineProxyTest:testProxyOwnerIsSelf() (gas: 12621) CrossMarginCashEngineAccessTest:test() (gas: 186) -CrossMarginCashEngineAccessTest:testCannotTransferToOverrideAnotherAccount() (gas: 118158) -CrossMarginCashEngineAccessTest:testCannotTransferUnAuthorizedAccount() (gas: 15536) -CrossMarginCashEngineAccessTest:testTransferCMAccount() (gas: 131143) +CrossMarginCashEngineAccessTest:testCannotTransferToOverrideAnotherAccount() (gas: 118268) +CrossMarginCashEngineAccessTest:testCannotTransferUnAuthorizedAccount() (gas: 15581) +CrossMarginCashEngineAccessTest:testTransferCMAccount() (gas: 131298) CrossMarginCashEngineAccessTest:testUtils() (gas: 144) -CrossMarginCashEngineSignedAccessTest:test() (gas: 186) -CrossMarginCashEngineSignedAccessTest:testCanSetAccess() (gas: 190995) -CrossMarginCashEngineSignedAccessTest:testCanSetAccessToZero() (gas: 185285) -CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidAccount() (gas: 50653) -CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidActor() (gas: 52737) -CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidExecutionsNum() (gas: 50680) -CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidNonce() (gas: 50673) -CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidPrivateKey() (gas: 48575) -CrossMarginCashEngineSignedAccessTest:testRevertsOnMismatchingAccount() (gas: 52608) -CrossMarginCashEngineSignedAccessTest:testRevertsOnNoSignature() (gas: 46062) +CrossMarginCashEngineSignedAccessTest:test() (gas: 208) +CrossMarginCashEngineSignedAccessTest:testCanSetAccess() (gas: 188953) +CrossMarginCashEngineSignedAccessTest:testCanSetAccessToZero() (gas: 183088) +CrossMarginCashEngineSignedAccessTest:testCanSetDomainSeperator() (gas: 117540) +CrossMarginCashEngineSignedAccessTest:testCannotSetDomainSeperator() (gas: 15314) +CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidAccount() (gas: 48498) +CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidActor() (gas: 50604) +CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidExecutionsNum() (gas: 48481) +CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidNonce() (gas: 48518) +CrossMarginCashEngineSignedAccessTest:testRevertsOnInvalidPrivateKey() (gas: 46420) +CrossMarginCashEngineSignedAccessTest:testRevertsOnMismatchingAccount() (gas: 50453) +CrossMarginCashEngineSignedAccessTest:testRevertsOnNoSignature() (gas: 43984) CrossMarginCashEngineSignedAccessTest:testUtils() (gas: 189) CrossMarginPhysicalEngineAccessTest:test() (gas: 164) -CrossMarginPhysicalEngineAccessTest:testCannotTransferToOverrideAnotherAccount() (gas: 118166) -CrossMarginPhysicalEngineAccessTest:testCannotTransferUnAuthorizedAccount() (gas: 15559) +CrossMarginPhysicalEngineAccessTest:testCannotTransferToOverrideAnotherAccount() (gas: 118122) +CrossMarginPhysicalEngineAccessTest:testCannotTransferUnAuthorizedAccount() (gas: 15537) CrossMarginPhysicalEngineAccessTest:testForgeCoverageIgnoreThis() (gas: 208) -CrossMarginPhysicalEngineAccessTest:testTransferCMAccount() (gas: 131197) +CrossMarginPhysicalEngineAccessTest:testTransferCMAccount() (gas: 131131) CrossMarginPhysicalEngineAccessTest:testUtils() (gas: 144) -CrossMarginPhysicalEngineSignedAccessTest:test() (gas: 164) -CrossMarginPhysicalEngineSignedAccessTest:testCanSetAccess() (gas: 190963) -CrossMarginPhysicalEngineSignedAccessTest:testCanSetAccessToZero() (gas: 185257) -CrossMarginPhysicalEngineSignedAccessTest:testForgeCoverageIgnoreThis() (gas: 208) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidAccount() (gas: 50587) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidActor() (gas: 52718) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidExecutionsNum() (gas: 50595) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidNonce() (gas: 50588) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidPrivateKey() (gas: 48557) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnMismatchingAccount() (gas: 52556) -CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnNoSignature() (gas: 46051) +CrossMarginPhysicalEngineSignedAccessTest:test() (gas: 186) +CrossMarginPhysicalEngineSignedAccessTest:testCanSetAccess() (gas: 188834) +CrossMarginPhysicalEngineSignedAccessTest:testCanSetAccessToZero() (gas: 183040) +CrossMarginPhysicalEngineSignedAccessTest:testCanSetDomainSeperator() (gas: 117631) +CrossMarginPhysicalEngineSignedAccessTest:testCannotSetDomainSeperator() (gas: 15270) +CrossMarginPhysicalEngineSignedAccessTest:testForgeCoverageIgnoreThis() (gas: 230) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidAccount() (gas: 48543) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidActor() (gas: 50608) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidExecutionsNum() (gas: 48551) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidNonce() (gas: 48544) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnInvalidPrivateKey() (gas: 46491) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnMismatchingAccount() (gas: 50490) +CrossMarginPhysicalEngineSignedAccessTest:testRevertsOnNoSignature() (gas: 44018) CrossMarginPhysicalEngineSignedAccessTest:testUtils() (gas: 189) Deploy:testChill() (gas: 143) +Deploy:testChill() (gas: 98) Deploy:testUtils() (gas: 121) DeployPhysicalMarginEngine:testChill() (gas: 165) DeployPhysicalMarginEngine:testUtils() (gas: 121) General_CMC:test() (gas: 186) -General_CMC:testCannotCallAddLongWithExpiredToken() (gas: 26112) -General_CMC:testCannotCallAddLongWithNotAuthorizedEngine() (gas: 56005) +General_CMC:testCannotCallAddLongWithExpiredToken() (gas: 26177) +General_CMC:testCannotCallAddLongWithNotAuthorizedEngine() (gas: 56070) General_CMC:testCannotCallPayoutFromAnybody() (gas: 17858) -General_CMC:testCannotCallRemoveLongNotInAccount() (gas: 31902) -General_CMC:testGetMinCollateral() (gas: 281989) +General_CMC:testCannotCallRemoveLongNotInAccount() (gas: 31967) +General_CMC:testGetMinCollateral() (gas: 282054) General_CMC:testUtils() (gas: 167) General_CMP:test() (gas: 164) -General_CMP:testCannotCallAddLongWithExpiredOption() (gas: 26155) -General_CMP:testCannotCallAddLongWithNotAuthorizedEngine() (gas: 51671) -General_CMP:testCannotCallPayoutFromAnybody() (gas: 17872) -General_CMP:testCannotCallRemoveLongNotInAccount() (gas: 31922) +General_CMP:testCannotCallAddLongWithExpiredOption() (gas: 26133) +General_CMP:testCannotCallAddLongWithNotAuthorizedEngine() (gas: 51649) +General_CMP:testCannotCallPayoutFromAnybody() (gas: 17938) +General_CMP:testCannotCallRemoveLongNotInAccount() (gas: 31900) General_CMP:testForgeCoverageIgnoreThis() (gas: 208) -General_CMP:testGetMinCollateral() (gas: 300026) +General_CMP:testGetMinCollateral() (gas: 300004) General_CMP:testUtils() (gas: 167) MockEngineV2:test() (gas: 162) MockWhitelist:test() (gas: 186) Permissioned_CMC:test() (gas: 186) -Permissioned_CMC:testAliceCanSettleOption() (gas: 386924) -Permissioned_CMC:testCanExecute() (gas: 157627) -Permissioned_CMC:testCannotExecute() (gas: 30042) -Permissioned_CMC:testCannotSettleOption() (gas: 359727) +Permissioned_CMC:testAliceCanSettleOption() (gas: 386989) +Permissioned_CMC:testCanExecute() (gas: 157737) +Permissioned_CMC:testCannotExecute() (gas: 30107) +Permissioned_CMC:testCannotSettleOption() (gas: 359792) Permissioned_CMC:testUtils() (gas: 167) Permissioned_CMP:test() (gas: 186) -Permissioned_CMP:testAliceCanSettleOption() (gas: 417979) -Permissioned_CMP:testCanExecute() (gas: 157683) -Permissioned_CMP:testCannotExecute() (gas: 30056) -Permissioned_CMP:testCannotSettleOption() (gas: 348015) +Permissioned_CMP:testAliceCanSettleOption() (gas: 418068) +Permissioned_CMP:testCanExecute() (gas: 157639) +Permissioned_CMP:testCannotExecute() (gas: 30034) +Permissioned_CMP:testCannotSettleOption() (gas: 348036) Permissioned_CMP:testForgeCoverageIgnoreThis() (gas: 230) Permissioned_CMP:testUtils() (gas: 167) -PhysicalEngineProxyTest:testCanUpgradeToAnotherUUPSContract() (gas: 753771) -PhysicalEngineProxyTest:testCannotPermitAccountAccessCrossProxy() (gas: 541003) -PhysicalEngineProxyTest:testCannotUpgradeFromNonOwner() (gas: 16158) -PhysicalEngineProxyTest:testCannotUpgradeTov3() (gas: 1488991) -PhysicalEngineProxyTest:testImplementationContractOwnerIsZero() (gas: 7706) +PhysicalEngineProxyTest:testCanUpgradeToAnotherUUPSContract() (gas: 753749) +PhysicalEngineProxyTest:testCannotPermitAccountAccessCrossProxy() (gas: 516148) +PhysicalEngineProxyTest:testCannotUpgradeFromNonOwner() (gas: 16136) +PhysicalEngineProxyTest:testCannotUpgradeTov3() (gas: 1488969) +PhysicalEngineProxyTest:testImplementationContractOwnerIsZero() (gas: 7684) PhysicalEngineProxyTest:testImplementationIsInitialized() (gas: 10990) PhysicalEngineProxyTest:testProxyIsInitialized() (gas: 15863) -PhysicalEngineProxyTest:testProxyOwnerIsSelf() (gas: 12588) +PhysicalEngineProxyTest:testProxyOwnerIsSelf() (gas: 12566) PreviewCollateralReqBase_CMC:test() (gas: 186) PreviewCollateralReqBase_CMC:testIgnore() (gas: 188) PreviewCollateralReqBase_CMC:testUtils() (gas: 144) @@ -90,123 +95,123 @@ PreviewCollateralReqBase_CMP:testForgeCoverageIgnoreThis() (gas: 208) PreviewCollateralReqBase_CMP:testIgnore() (gas: 188) PreviewCollateralReqBase_CMP:testUtils() (gas: 144) PreviewCollateralReq_CMCM:test() (gas: 230) -PreviewCollateralReq_CMCM:testConversion() (gas: 115336) +PreviewCollateralReq_CMCM:testConversion() (gas: 115292) PreviewCollateralReq_CMCM:testIgnore() (gas: 232) -PreviewCollateralReq_CMCM:testIronCondor() (gas: 117092) -PreviewCollateralReq_CMCM:testLongPutSpread() (gas: 65889) -PreviewCollateralReq_CMCM:testLongStrangleSpread2() (gas: 112472) -PreviewCollateralReq_CMCM:testLongStrangles() (gas: 72469) -PreviewCollateralReq_CMCM:testMarginBinaryCallOption() (gas: 65265) -PreviewCollateralReq_CMCM:testMarginCallSpreadSameUnderlyingCollateral() (gas: 70061) -PreviewCollateralReq_CMCM:testMarginCallSpreadSameUnderlyingCollateralBiggerNumbers() (gas: 70080) -PreviewCollateralReq_CMCM:testMarginLongBinaryPut() (gas: 65775) -PreviewCollateralReq_CMCM:testMarginRequirement1() (gas: 155398) -PreviewCollateralReq_CMCM:testMarginRequirement2() (gas: 155378) -PreviewCollateralReq_CMCM:testMarginRequirement3() (gas: 157890) -PreviewCollateralReq_CMCM:testMarginRequirement4() (gas: 155392) -PreviewCollateralReq_CMCM:testMarginRequirementsVanillaCall() (gas: 56384) -PreviewCollateralReq_CMCM:testMarginRequirementsVanillaPut() (gas: 56758) -PreviewCollateralReq_CMCM:testMarginShortBinaryPut() (gas: 67690) -PreviewCollateralReq_CMCM:testMarginSimpleITMCall() (gas: 56340) -PreviewCollateralReq_CMCM:testMarginSimpleITMPut() (gas: 56738) -PreviewCollateralReq_CMCM:testMarginSimpleOTMCall() (gas: 56383) -PreviewCollateralReq_CMCM:testMarginSimplePut() (gas: 56759) -PreviewCollateralReq_CMCM:testMarginUnsortedStrikes() (gas: 155526) -PreviewCollateralReq_CMCM:testOneByTwoCall() (gas: 83955) -PreviewCollateralReq_CMCM:testOneByTwoPut() (gas: 89604) -PreviewCollateralReq_CMCM:testPutGreaterThanCalls() (gas: 115472) -PreviewCollateralReq_CMCM:testShortPutSpread() (gas: 67902) -PreviewCollateralReq_CMCM:testShortStrangles() (gas: 77295) -PreviewCollateralReq_CMCM:testStrangleSpread() (gas: 114801) -PreviewCollateralReq_CMCM:testStrangleSpread2() (gas: 114645) -PreviewCollateralReq_CMCM:testUpAndDown1() (gas: 65862) -PreviewCollateralReq_CMCM:testUpAndDown2() (gas: 68068) -PreviewCollateralReq_CMCM:testUpAndDown3() (gas: 91154) -PreviewCollateralReq_CMCM:testUpAndDown4() (gas: 114485) +PreviewCollateralReq_CMCM:testIronCondor() (gas: 117070) +PreviewCollateralReq_CMCM:testLongPutSpread() (gas: 65867) +PreviewCollateralReq_CMCM:testLongStrangleSpread2() (gas: 112450) +PreviewCollateralReq_CMCM:testLongStrangles() (gas: 72447) +PreviewCollateralReq_CMCM:testMarginBinaryCallOption() (gas: 65243) +PreviewCollateralReq_CMCM:testMarginCallSpreadSameUnderlyingCollateral() (gas: 70039) +PreviewCollateralReq_CMCM:testMarginCallSpreadSameUnderlyingCollateralBiggerNumbers() (gas: 70058) +PreviewCollateralReq_CMCM:testMarginLongBinaryPut() (gas: 65753) +PreviewCollateralReq_CMCM:testMarginRequirement1() (gas: 155376) +PreviewCollateralReq_CMCM:testMarginRequirement2() (gas: 155356) +PreviewCollateralReq_CMCM:testMarginRequirement3() (gas: 157868) +PreviewCollateralReq_CMCM:testMarginRequirement4() (gas: 155370) +PreviewCollateralReq_CMCM:testMarginRequirementsVanillaCall() (gas: 56362) +PreviewCollateralReq_CMCM:testMarginRequirementsVanillaPut() (gas: 56736) +PreviewCollateralReq_CMCM:testMarginShortBinaryPut() (gas: 67668) +PreviewCollateralReq_CMCM:testMarginSimpleITMCall() (gas: 56318) +PreviewCollateralReq_CMCM:testMarginSimpleITMPut() (gas: 56716) +PreviewCollateralReq_CMCM:testMarginSimpleOTMCall() (gas: 56361) +PreviewCollateralReq_CMCM:testMarginSimplePut() (gas: 56737) +PreviewCollateralReq_CMCM:testMarginUnsortedStrikes() (gas: 155504) +PreviewCollateralReq_CMCM:testOneByTwoCall() (gas: 83933) +PreviewCollateralReq_CMCM:testOneByTwoPut() (gas: 89582) +PreviewCollateralReq_CMCM:testPutGreaterThanCalls() (gas: 115450) +PreviewCollateralReq_CMCM:testShortPutSpread() (gas: 67880) +PreviewCollateralReq_CMCM:testShortStrangles() (gas: 77273) +PreviewCollateralReq_CMCM:testStrangleSpread() (gas: 114779) +PreviewCollateralReq_CMCM:testStrangleSpread2() (gas: 114623) +PreviewCollateralReq_CMCM:testUpAndDown1() (gas: 65840) +PreviewCollateralReq_CMCM:testUpAndDown2() (gas: 68046) +PreviewCollateralReq_CMCM:testUpAndDown3() (gas: 91132) +PreviewCollateralReq_CMCM:testUpAndDown4() (gas: 114463) PreviewCollateralReq_CMCM:testUtils() (gas: 234) PreviewCollateralReq_CMPM:test() (gas: 186) -PreviewCollateralReq_CMPM:testConversion() (gas: 107850) +PreviewCollateralReq_CMPM:testConversion() (gas: 107806) PreviewCollateralReq_CMPM:testForgeCoverageIgnoreThis() (gas: 230) PreviewCollateralReq_CMPM:testIgnore() (gas: 210) -PreviewCollateralReq_CMPM:testIronCondor() (gas: 109596) -PreviewCollateralReq_CMPM:testLongPutSpread() (gas: 62668) -PreviewCollateralReq_CMPM:testLongStrangles() (gas: 67731) -PreviewCollateralReq_CMPM:testMarginBinaryCallOption() (gas: 62009) -PreviewCollateralReq_CMPM:testMarginCallSpreadSameUnderlyingCollateral() (gas: 66911) -PreviewCollateralReq_CMPM:testMarginCallSpreadSameUnderlyingCollateralBiggerNumbers() (gas: 66886) -PreviewCollateralReq_CMPM:testMarginLongBinaryPut() (gas: 62574) -PreviewCollateralReq_CMPM:testMarginRequirement1() (gas: 149492) -PreviewCollateralReq_CMPM:testMarginRequirement2() (gas: 148149) -PreviewCollateralReq_CMPM:testMarginRequirement3() (gas: 150664) -PreviewCollateralReq_CMPM:testMarginRequirement4() (gas: 148139) -PreviewCollateralReq_CMPM:testMarginRequirementsVanillaCall() (gas: 53018) -PreviewCollateralReq_CMPM:testMarginRequirementsVanillaPut() (gas: 53348) -PreviewCollateralReq_CMPM:testMarginShortBinaryPut() (gas: 64495) -PreviewCollateralReq_CMPM:testMarginSimpleCall() (gas: 53019) -PreviewCollateralReq_CMPM:testMarginSimplePut() (gas: 53349) -PreviewCollateralReq_CMPM:testMarginUnsortedStrikes() (gas: 148230) -PreviewCollateralReq_CMPM:testOneByTwoCall() (gas: 79541) -PreviewCollateralReq_CMPM:testOneByTwoPut() (gas: 83694) -PreviewCollateralReq_CMPM:testPutGreaterThanCalls() (gas: 107973) -PreviewCollateralReq_CMPM:testShortPutSpread() (gas: 64707) -PreviewCollateralReq_CMPM:testShortStrangles() (gas: 72541) -PreviewCollateralReq_CMPM:testStrangleSpread() (gas: 107257) -PreviewCollateralReq_CMPM:testStrangleSpread2() (gas: 107123) -PreviewCollateralReq_CMPM:testUpAndDown1() (gas: 62619) -PreviewCollateralReq_CMPM:testUpAndDown2() (gas: 64851) -PreviewCollateralReq_CMPM:testUpAndDown3() (gas: 85046) -PreviewCollateralReq_CMPM:testUpAndDown4() (gas: 106963) +PreviewCollateralReq_CMPM:testIronCondor() (gas: 109574) +PreviewCollateralReq_CMPM:testLongPutSpread() (gas: 62646) +PreviewCollateralReq_CMPM:testLongStrangles() (gas: 67709) +PreviewCollateralReq_CMPM:testMarginBinaryCallOption() (gas: 61987) +PreviewCollateralReq_CMPM:testMarginCallSpreadSameUnderlyingCollateral() (gas: 66889) +PreviewCollateralReq_CMPM:testMarginCallSpreadSameUnderlyingCollateralBiggerNumbers() (gas: 66864) +PreviewCollateralReq_CMPM:testMarginLongBinaryPut() (gas: 62552) +PreviewCollateralReq_CMPM:testMarginRequirement1() (gas: 149470) +PreviewCollateralReq_CMPM:testMarginRequirement2() (gas: 148127) +PreviewCollateralReq_CMPM:testMarginRequirement3() (gas: 150642) +PreviewCollateralReq_CMPM:testMarginRequirement4() (gas: 148117) +PreviewCollateralReq_CMPM:testMarginRequirementsVanillaCall() (gas: 52996) +PreviewCollateralReq_CMPM:testMarginRequirementsVanillaPut() (gas: 53326) +PreviewCollateralReq_CMPM:testMarginShortBinaryPut() (gas: 64473) +PreviewCollateralReq_CMPM:testMarginSimpleCall() (gas: 52997) +PreviewCollateralReq_CMPM:testMarginSimplePut() (gas: 53327) +PreviewCollateralReq_CMPM:testMarginUnsortedStrikes() (gas: 148208) +PreviewCollateralReq_CMPM:testOneByTwoCall() (gas: 79519) +PreviewCollateralReq_CMPM:testOneByTwoPut() (gas: 83672) +PreviewCollateralReq_CMPM:testPutGreaterThanCalls() (gas: 107951) +PreviewCollateralReq_CMPM:testShortPutSpread() (gas: 64685) +PreviewCollateralReq_CMPM:testShortStrangles() (gas: 72519) +PreviewCollateralReq_CMPM:testStrangleSpread() (gas: 107235) +PreviewCollateralReq_CMPM:testStrangleSpread2() (gas: 107101) +PreviewCollateralReq_CMPM:testUpAndDown1() (gas: 62597) +PreviewCollateralReq_CMPM:testUpAndDown2() (gas: 64829) +PreviewCollateralReq_CMPM:testUpAndDown3() (gas: 85024) +PreviewCollateralReq_CMPM:testUpAndDown4() (gas: 106941) PreviewCollateralReq_CMPM:testUtils() (gas: 212) TestAddCollateral_CMC:test() (gas: 164) -TestAddCollateral_CMC:testAddCollateralChangeStorage() (gas: 126924) -TestAddCollateral_CMC:testAddCollateralLoopMoveBalances() (gas: 141341) -TestAddCollateral_CMC:testAddCollateralMoveBalance() (gas: 128247) -TestAddCollateral_CMC:testAddMultipleCollateralHasNoSideEffects() (gas: 213599) -TestAddCollateral_CMC:testCanAddDifferentCollateralToSameAccount() (gas: 196323) -TestAddCollateral_CMC:testCannotAddCollatFromOthers() (gas: 27628) +TestAddCollateral_CMC:testAddCollateralChangeStorage() (gas: 127034) +TestAddCollateral_CMC:testAddCollateralLoopMoveBalances() (gas: 141406) +TestAddCollateral_CMC:testAddCollateralMoveBalance() (gas: 128312) +TestAddCollateral_CMC:testAddMultipleCollateralHasNoSideEffects() (gas: 213664) +TestAddCollateral_CMC:testCanAddDifferentCollateralToSameAccount() (gas: 196433) +TestAddCollateral_CMC:testCannotAddCollatFromOthers() (gas: 27693) TestAddCollateral_CMC:testUtils() (gas: 167) TestAddCollateral_CMP:test() (gas: 209) -TestAddCollateral_CMP:testAddCollateralChangeStorage() (gas: 126939) -TestAddCollateral_CMP:testAddCollateralLoopMoveBalances() (gas: 141326) -TestAddCollateral_CMP:testAddCollateralMoveBalance() (gas: 128304) -TestAddCollateral_CMP:testAddMultipleCollateralHasNoSideEffects() (gas: 213584) -TestAddCollateral_CMP:testCanAddDifferentCollateralToSameAccount() (gas: 196376) -TestAddCollateral_CMP:testCannotAddCollatFromOthers() (gas: 27649) +TestAddCollateral_CMP:testAddCollateralChangeStorage() (gas: 126895) +TestAddCollateral_CMP:testAddCollateralLoopMoveBalances() (gas: 141304) +TestAddCollateral_CMP:testAddCollateralMoveBalance() (gas: 128282) +TestAddCollateral_CMP:testAddMultipleCollateralHasNoSideEffects() (gas: 213562) +TestAddCollateral_CMP:testCanAddDifferentCollateralToSameAccount() (gas: 196332) +TestAddCollateral_CMP:testCannotAddCollatFromOthers() (gas: 27627) TestAddCollateral_CMP:testForgeCoverageIgnoreThis() (gas: 186) TestAddCollateral_CMP:testUtils() (gas: 167) TestAddLong_CMC:test() (gas: 186) -TestAddLong_CMC:testAddLongCallToken() (gas: 518672) -TestAddLong_CMC:testAddLongPutToken() (gas: 519247) +TestAddLong_CMC:testAddLongCallToken() (gas: 518802) +TestAddLong_CMC:testAddLongPutToken() (gas: 519377) TestAddLong_CMC:testUtils() (gas: 144) TestAddLong_CMP:test() (gas: 164) -TestAddLong_CMP:testAddLongCallToken() (gas: 560156) -TestAddLong_CMP:testAddLongPutToken() (gas: 560577) +TestAddLong_CMP:testAddLongCallToken() (gas: 560157) +TestAddLong_CMP:testAddLongPutToken() (gas: 560578) TestAddLong_CMP:testForgeCoverageIgnoreThis() (gas: 208) TestAddLong_CMP:testUtils() (gas: 144) TestBatchExecute_CMC:test() (gas: 186) -TestBatchExecute_CMC:testMintSpreadChecksCollateralAfterBatch() (gas: 590048) -TestBatchExecute_CMC:testMintTwoSidedStructure() (gas: 637445) -TestBatchExecute_CMC:testMintTwoSidesSameOption() (gas: 585206) +TestBatchExecute_CMC:testMintSpreadChecksCollateralAfterBatch() (gas: 590138) +TestBatchExecute_CMC:testMintTwoSidedStructure() (gas: 637535) +TestBatchExecute_CMC:testMintTwoSidesSameOption() (gas: 585296) TestBatchExecute_CMC:testUtils() (gas: 167) TestBatchExecute_CMP:test() (gas: 186) TestBatchExecute_CMP:testForgeCoverageIgnoreThis() (gas: 230) -TestBatchExecute_CMP:testMintSpreadChecksCollateralAfterBatch() (gas: 631413) -TestBatchExecute_CMP:testMintTwoSidedStructure() (gas: 678809) -TestBatchExecute_CMP:testMintTwoSidesSameOption() (gas: 604624) +TestBatchExecute_CMP:testMintSpreadChecksCollateralAfterBatch() (gas: 631459) +TestBatchExecute_CMP:testMintTwoSidedStructure() (gas: 678855) +TestBatchExecute_CMP:testMintTwoSidesSameOption() (gas: 604670) TestBatchExecute_CMP:testUtils() (gas: 167) TestBurnOption_CMC:test() (gas: 186) -TestBurnOption_CMC:testBurn() (gas: 64099) -TestBurnOption_CMC:testCannotBurnForEmptyAccount() (gas: 34737) -TestBurnOption_CMC:testCannotBurnFromUnAuthorizedAccount() (gas: 65170) -TestBurnOption_CMC:testCannotBurnWhenOptionTokenBalanceIsLow() (gas: 104226) -TestBurnOption_CMC:testCannotBurnWithWrongTokenId() (gas: 39264) +TestBurnOption_CMC:testBurn() (gas: 64187) +TestBurnOption_CMC:testCannotBurnForEmptyAccount() (gas: 34802) +TestBurnOption_CMC:testCannotBurnFromUnAuthorizedAccount() (gas: 65235) +TestBurnOption_CMC:testCannotBurnWhenOptionTokenBalanceIsLow() (gas: 104291) +TestBurnOption_CMC:testCannotBurnWithWrongTokenId() (gas: 39329) TestBurnOption_CMC:testUtils() (gas: 167) TestBurnOption_CMP:test() (gas: 164) -TestBurnOption_CMP:testBurn() (gas: 68792) -TestBurnOption_CMP:testCannotBurnForEmptyAccount() (gas: 34848) -TestBurnOption_CMP:testCannotBurnFromUnAuthorizedAccount() (gas: 65215) -TestBurnOption_CMP:testCannotBurnWhenOptionTokenBalanceIsLow() (gas: 104337) -TestBurnOption_CMP:testCannotBurnWithWrongTokenId() (gas: 41475) +TestBurnOption_CMP:testBurn() (gas: 68756) +TestBurnOption_CMP:testCannotBurnForEmptyAccount() (gas: 34826) +TestBurnOption_CMP:testCannotBurnFromUnAuthorizedAccount() (gas: 65193) +TestBurnOption_CMP:testCannotBurnWhenOptionTokenBalanceIsLow() (gas: 104315) +TestBurnOption_CMP:testCannotBurnWithWrongTokenId() (gas: 41453) TestBurnOption_CMP:testForgeCoverageIgnoreThis() (gas: 230) TestBurnOption_CMP:testUtils() (gas: 167) TestCornerCases_CMCM:testIronCondor() (gas: 65610) @@ -230,158 +235,158 @@ TestCornerCases_CMPM:testUpAndDown2() (gas: 52291) TestCornerCases_CMPM:testUpAndDown3() (gas: 67639) TestCornerCases_CMPM:testUpAndDown4() (gas: 73968) TestExerciseLongPositions_CMP:test() (gas: 164) -TestExerciseLongPositions_CMP:testCanClearLongCallAfterExpiryBeforeWindowClosed() (gas: 425563) -TestExerciseLongPositions_CMP:testCanClearLongPastExerciseWindow() (gas: 329871) -TestExerciseLongPositions_CMP:testCanClearLongPortion() (gas: 468749) -TestExerciseLongPositions_CMP:testCanClearMultipleLongCallAfterExpiryBeforeWindowClosed() (gas: 620260) -TestExerciseLongPositions_CMP:testCanClearPortionPut() (gas: 425865) -TestExerciseLongPositions_CMP:testCanClearPutBeforeWindowClosed() (gas: 425930) -TestExerciseLongPositions_CMP:testCannotClearLongCallAfterWindowClosed() (gas: 323570) -TestExerciseLongPositions_CMP:testCannotClearLongPutAfterWindowClosed() (gas: 323849) -TestExerciseLongPositions_CMP:testCannotClearLongWithExceededAmount() (gas: 378270) +TestExerciseLongPositions_CMP:testCanClearLongCallAfterExpiryBeforeWindowClosed() (gas: 425653) +TestExerciseLongPositions_CMP:testCanClearLongPastExerciseWindow() (gas: 329850) +TestExerciseLongPositions_CMP:testCanClearLongPortion() (gas: 468795) +TestExerciseLongPositions_CMP:testCanClearMultipleLongCallAfterExpiryBeforeWindowClosed() (gas: 620440) +TestExerciseLongPositions_CMP:testCanClearPortionPut() (gas: 425955) +TestExerciseLongPositions_CMP:testCanClearPutBeforeWindowClosed() (gas: 426020) +TestExerciseLongPositions_CMP:testCannotClearLongCallAfterWindowClosed() (gas: 323589) +TestExerciseLongPositions_CMP:testCannotClearLongPutAfterWindowClosed() (gas: 323868) +TestExerciseLongPositions_CMP:testCannotClearLongWithExceededAmount() (gas: 378271) TestExerciseLongPositions_CMP:testForgeCoverageIgnoreThis() (gas: 208) TestExerciseLongPositions_CMP:testUtils() (gas: 167) TestLongShortSettlement:test() (gas: 186) -TestLongShortSettlement:testShortsAreSettledBeforeLongs() (gas: 590537) +TestLongShortSettlement:testShortsAreSettledBeforeLongs() (gas: 590641) TestLongShortSettlement:testUtils() (gas: 144) TestMintIntoAccount_CMC:test() (gas: 186) -TestMintIntoAccount_CMC:testMintIntoAccountCall() (gas: 337488) +TestMintIntoAccount_CMC:testMintIntoAccountCall() (gas: 337598) TestMintIntoAccount_CMC:testUtils() (gas: 144) TestMintIntoAccount_CMP:test() (gas: 164) TestMintIntoAccount_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestMintIntoAccount_CMP:testMintIntoAccountCall() (gas: 359291) +TestMintIntoAccount_CMP:testMintIntoAccountCall() (gas: 359292) TestMintIntoAccount_CMP:testUtils() (gas: 144) TestMintWithPartialMarginBeta_CMC:test() (gas: 208) -TestMintWithPartialMarginBeta_CMC:testCannotMintTooLittleCollateral() (gas: 459607) -TestMintWithPartialMarginBeta_CMC:testMintCall() (gas: 280869) -TestMintWithPartialMarginBeta_CMC:testMintCallWithHigherValueCollateral() (gas: 288850) -TestMintWithPartialMarginBeta_CMC:testMintCallWithSimilarCollateral() (gas: 373935) -TestMintWithPartialMarginBeta_CMC:testMintMixedBag() (gas: 645138) -TestMintWithPartialMarginBeta_CMC:testMintMixedBagWithVariableValueCollateral() (gas: 653905) -TestMintWithPartialMarginBeta_CMC:testMintPut() (gas: 281263) -TestMintWithPartialMarginBeta_CMC:testMintPutWithHigherValueCollateral() (gas: 289285) -TestMintWithPartialMarginBeta_CMC:testMintPutWithSimilarCollateral() (gas: 374453) -TestMintWithPartialMarginBeta_CMC:testRemovePartialMarginMask() (gas: 106675) +TestMintWithPartialMarginBeta_CMC:testCannotMintTooLittleCollateral() (gas: 459672) +TestMintWithPartialMarginBeta_CMC:testMintCall() (gas: 280979) +TestMintWithPartialMarginBeta_CMC:testMintCallWithHigherValueCollateral() (gas: 288960) +TestMintWithPartialMarginBeta_CMC:testMintCallWithSimilarCollateral() (gas: 374045) +TestMintWithPartialMarginBeta_CMC:testMintMixedBag() (gas: 645248) +TestMintWithPartialMarginBeta_CMC:testMintMixedBagWithVariableValueCollateral() (gas: 654015) +TestMintWithPartialMarginBeta_CMC:testMintPut() (gas: 281373) +TestMintWithPartialMarginBeta_CMC:testMintPutWithHigherValueCollateral() (gas: 289395) +TestMintWithPartialMarginBeta_CMC:testMintPutWithSimilarCollateral() (gas: 374563) +TestMintWithPartialMarginBeta_CMC:testRemovePartialMarginMask() (gas: 106807) TestMintWithPartialMarginBeta_CMC:testSameAssetPartialMarginMask() (gas: 24824) TestMintWithPartialMarginBeta_CMC:testUtils() (gas: 167) TestMintWithPartialMarginBeta_CMP:test() (gas: 186) -TestMintWithPartialMarginBeta_CMP:testCannotMintTooLittleCollateral() (gas: 506323) +TestMintWithPartialMarginBeta_CMP:testCannotMintTooLittleCollateral() (gas: 506301) TestMintWithPartialMarginBeta_CMP:testForgeCoverageIgnoreThis() (gas: 230) -TestMintWithPartialMarginBeta_CMP:testMintCall() (gas: 305334) -TestMintWithPartialMarginBeta_CMP:testMintCallWithHigherValueCollateral() (gas: 313371) -TestMintWithPartialMarginBeta_CMP:testMintCallWithSimilarCollateral() (gas: 419933) -TestMintWithPartialMarginBeta_CMP:testMintMixedBag() (gas: 720697) -TestMintWithPartialMarginBeta_CMP:testMintMixedBagWithVariableValueCollateral() (gas: 726605) -TestMintWithPartialMarginBeta_CMP:testMintPut() (gas: 303694) -TestMintWithPartialMarginBeta_CMP:testMintPutWithHigherValueCollateral() (gas: 311717) -TestMintWithPartialMarginBeta_CMP:testMintPutWithSimilarCollateral() (gas: 418297) +TestMintWithPartialMarginBeta_CMP:testMintCall() (gas: 305290) +TestMintWithPartialMarginBeta_CMP:testMintCallWithHigherValueCollateral() (gas: 313327) +TestMintWithPartialMarginBeta_CMP:testMintCallWithSimilarCollateral() (gas: 419889) +TestMintWithPartialMarginBeta_CMP:testMintMixedBag() (gas: 720653) +TestMintWithPartialMarginBeta_CMP:testMintMixedBagWithVariableValueCollateral() (gas: 726561) +TestMintWithPartialMarginBeta_CMP:testMintPut() (gas: 303650) +TestMintWithPartialMarginBeta_CMP:testMintPutWithHigherValueCollateral() (gas: 311673) +TestMintWithPartialMarginBeta_CMP:testMintPutWithSimilarCollateral() (gas: 418253) TestMintWithPartialMarginBeta_CMP:testUtils() (gas: 167) TestMint_CMC:test() (gas: 208) -TestMint_CMC:testCannotMintCallSpread() (gas: 129000) -TestMint_CMC:testCannotMintCallWithLittleCollateral() (gas: 267234) -TestMint_CMC:testCannotMintExpiredOption() (gas: 110523) -TestMint_CMC:testCannotMintPutSpread() (gas: 128981) -TestMint_CMC:testCannotMintPutWithLittleCollateral() (gas: 265363) -TestMint_CMC:testCannotMintWithoutCollateral() (gas: 176705) -TestMint_CMC:testMintCall() (gas: 268876) -TestMint_CMC:testMintCallAndPutInSameAccount() (gas: 448309) -TestMint_CMC:testMintPut() (gas: 269222) +TestMint_CMC:testCannotMintCallSpread() (gas: 129065) +TestMint_CMC:testCannotMintCallWithLittleCollateral() (gas: 267299) +TestMint_CMC:testCannotMintExpiredOption() (gas: 110588) +TestMint_CMC:testCannotMintPutSpread() (gas: 129046) +TestMint_CMC:testCannotMintPutWithLittleCollateral() (gas: 265428) +TestMint_CMC:testCannotMintWithoutCollateral() (gas: 176770) +TestMint_CMC:testMintCall() (gas: 268986) +TestMint_CMC:testMintCallAndPutInSameAccount() (gas: 448419) +TestMint_CMC:testMintPut() (gas: 269332) TestMint_CMC:testUtils() (gas: 167) TestMint_CMP:test() (gas: 186) -TestMint_CMP:testCannotMintCallWithLittleCollateral() (gas: 290285) -TestMint_CMP:testCannotMintExpiredOption() (gas: 112728) -TestMint_CMP:testCannotMintPutWithLittleCollateral() (gas: 286930) -TestMint_CMP:testCannotMintWithoutCollateral() (gas: 198333) +TestMint_CMP:testCannotMintCallWithLittleCollateral() (gas: 290263) +TestMint_CMP:testCannotMintExpiredOption() (gas: 112706) +TestMint_CMP:testCannotMintPutWithLittleCollateral() (gas: 286908) +TestMint_CMP:testCannotMintWithoutCollateral() (gas: 198311) TestMint_CMP:testForgeCoverageIgnoreThis() (gas: 230) -TestMint_CMP:testMintCall() (gas: 290498) -TestMint_CMP:testMintCallAndPutInSameAccount() (gas: 494310) -TestMint_CMP:testMintPut() (gas: 290767) +TestMint_CMP:testMintCall() (gas: 290454) +TestMint_CMP:testMintCallAndPutInSameAccount() (gas: 494266) +TestMint_CMP:testMintPut() (gas: 290723) TestMint_CMP:testUtils() (gas: 167) TestPMRemoveCollateral_CMC:test() (gas: 186) -TestPMRemoveCollateral_CMC:testEqualCallSpreadCollateralWithdraw() (gas: 714602) -TestPMRemoveCollateral_CMC:testEqualPutSpreadCollateralWithdraw() (gas: 710312) -TestPMRemoveCollateral_CMC:testEqualShortLongAllowCollateralWithdraw() (gas: 637977) +TestPMRemoveCollateral_CMC:testEqualCallSpreadCollateralWithdraw() (gas: 714907) +TestPMRemoveCollateral_CMC:testEqualPutSpreadCollateralWithdraw() (gas: 710617) +TestPMRemoveCollateral_CMC:testEqualShortLongAllowCollateralWithdraw() (gas: 638282) TestPMRemoveCollateral_CMC:testUtils() (gas: 144) TestPMRemoveCollateral_CMP:test() (gas: 164) -TestPMRemoveCollateral_CMP:testEqualCallSpreadCollateralWithdraw() (gas: 754230) -TestPMRemoveCollateral_CMP:testEqualPutSpreadCollateralWithdraw() (gas: 749740) -TestPMRemoveCollateral_CMP:testEqualShortLongAllowCollateralWithdraw() (gas: 654063) +TestPMRemoveCollateral_CMP:testEqualCallSpreadCollateralWithdraw() (gas: 754165) +TestPMRemoveCollateral_CMP:testEqualPutSpreadCollateralWithdraw() (gas: 749675) +TestPMRemoveCollateral_CMP:testEqualShortLongAllowCollateralWithdraw() (gas: 653998) TestPMRemoveCollateral_CMP:testForgeCoverageIgnoreThis() (gas: 208) TestPMRemoveCollateral_CMP:testUtils() (gas: 167) TestPMSettleLongCalls_CMC:test() (gas: 186) -TestPMSettleLongCalls_CMC:testSettleLongCallITMIncreasesCollateral() (gas: 172908) -TestPMSettleLongCalls_CMC:testSettleLongCallOTMNoIncreaseInCollateral() (gas: 122570) -TestPMSettleLongCalls_CMC:testSettleMultipleLongCallsITMIncreasesCollateral() (gas: 357899) -TestPMSettleLongCalls_CMC:testSettleMultipleLongCallsOTMNoIncreaseInCollateral() (gas: 315759) -TestPMSettleLongCalls_CMC:testSettleOnlyExpiredLongCallOTMNoIncreaseInCollateral() (gas: 328355) +TestPMSettleLongCalls_CMC:testSettleLongCallITMIncreasesCollateral() (gas: 173063) +TestPMSettleLongCalls_CMC:testSettleLongCallOTMNoIncreaseInCollateral() (gas: 122725) +TestPMSettleLongCalls_CMC:testSettleMultipleLongCallsITMIncreasesCollateral() (gas: 358119) +TestPMSettleLongCalls_CMC:testSettleMultipleLongCallsOTMNoIncreaseInCollateral() (gas: 315935) +TestPMSettleLongCalls_CMC:testSettleOnlyExpiredLongCallOTMNoIncreaseInCollateral() (gas: 328575) TestPMSettleLongCalls_CMC:testUtils() (gas: 167) TestPMSettleLongPutsCM:test() (gas: 186) -TestPMSettleLongPutsCM:testSettleLongCallITMIncreasesCollateral() (gas: 172374) -TestPMSettleLongPutsCM:testSettleLongCallOTMNoIncreaseInCollateral() (gas: 122058) +TestPMSettleLongPutsCM:testSettleLongCallITMIncreasesCollateral() (gas: 172529) +TestPMSettleLongPutsCM:testSettleLongCallOTMNoIncreaseInCollateral() (gas: 122213) TestPMSettleLongPutsCM:testUtils() (gas: 167) TestPMSettleLongStrangleSpreadCM:test() (gas: 186) -TestPMSettleLongStrangleSpreadCM:testSettleLongCallInnerITM() (gas: 335067) -TestPMSettleLongStrangleSpreadCM:testSettleLongCallOuterITM() (gas: 340976) -TestPMSettleLongStrangleSpreadCM:testSettleLongPutInnerITM() (gas: 333044) -TestPMSettleLongStrangleSpreadCM:testSettleLongPutOuterITM() (gas: 340994) -TestPMSettleLongStrangleSpreadCM:testSettleShortPutOTM() (gas: 290688) +TestPMSettleLongStrangleSpreadCM:testSettleLongCallInnerITM() (gas: 335279) +TestPMSettleLongStrangleSpreadCM:testSettleLongCallOuterITM() (gas: 341188) +TestPMSettleLongStrangleSpreadCM:testSettleLongPutInnerITM() (gas: 333256) +TestPMSettleLongStrangleSpreadCM:testSettleLongPutOuterITM() (gas: 341206) +TestPMSettleLongStrangleSpreadCM:testSettleShortPutOTM() (gas: 290900) TestPMSettleLongStrangleSpreadCM:testUtils() (gas: 167) TestRemoveCollateral_CMC:test() (gas: 186) -TestRemoveCollateral_CMC:testCannotRemoveDifferentCollateral() (gas: 36241) -TestRemoveCollateral_CMC:testCannotRemoveMoreThanOwn() (gas: 36899) -TestRemoveCollateral_CMC:testMultipleCollateralsAddRemove() (gas: 288442) -TestRemoveCollateral_CMC:testRemoveCollateralChangeStorage() (gas: 61626) -TestRemoveCollateral_CMC:testRemoveCollateralMoveBalance() (gas: 64277) -TestRemoveCollateral_CMC:testRemoveCollateralRetainBalances() (gas: 118411) +TestRemoveCollateral_CMC:testCannotRemoveDifferentCollateral() (gas: 36306) +TestRemoveCollateral_CMC:testCannotRemoveMoreThanOwn() (gas: 36964) +TestRemoveCollateral_CMC:testMultipleCollateralsAddRemove() (gas: 289102) +TestRemoveCollateral_CMC:testRemoveCollateralChangeStorage() (gas: 61736) +TestRemoveCollateral_CMC:testRemoveCollateralMoveBalance() (gas: 64342) +TestRemoveCollateral_CMC:testRemoveCollateralRetainBalances() (gas: 118521) TestRemoveCollateral_CMC:testUtils() (gas: 167) TestRemoveCollateral_CMP:test() (gas: 164) -TestRemoveCollateral_CMP:testCannotRemoveDifferentCollateral() (gas: 36284) -TestRemoveCollateral_CMP:testCannotRemoveMoreThanOwn() (gas: 36942) +TestRemoveCollateral_CMP:testCannotRemoveDifferentCollateral() (gas: 36262) +TestRemoveCollateral_CMP:testCannotRemoveMoreThanOwn() (gas: 36920) TestRemoveCollateral_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestRemoveCollateral_CMP:testMultipleCollateralsAddRemove() (gas: 288497) -TestRemoveCollateral_CMP:testRemoveCollateralChangeStorage() (gas: 61708) -TestRemoveCollateral_CMP:testRemoveCollateralMoveBalance() (gas: 64269) -TestRemoveCollateral_CMP:testRemoveCollateralRetainBalances() (gas: 118463) +TestRemoveCollateral_CMP:testMultipleCollateralsAddRemove() (gas: 288233) +TestRemoveCollateral_CMP:testRemoveCollateralChangeStorage() (gas: 61664) +TestRemoveCollateral_CMP:testRemoveCollateralMoveBalance() (gas: 64247) +TestRemoveCollateral_CMP:testRemoveCollateralRetainBalances() (gas: 118419) TestRemoveCollateral_CMP:testUtils() (gas: 167) TestRemoveLong_CMC:test() (gas: 186) -TestRemoveLong_CMC:testRemoveLongToken() (gas: 386386) +TestRemoveLong_CMC:testRemoveLongToken() (gas: 386542) TestRemoveLong_CMC:testUtils() (gas: 144) TestRemoveLong_CMP:test() (gas: 164) TestRemoveLong_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestRemoveLong_CMP:testRemoveLongToken() (gas: 401579) +TestRemoveLong_CMP:testRemoveLongToken() (gas: 401562) TestRemoveLong_CMP:testUtils() (gas: 144) TestSettleCollateralizedPut_CMC:test() (gas: 186) -TestSettleCollateralizedPut_CMC:testSellerCanClearOnlyExpiredOptions() (gas: 269914) -TestSettleCollateralizedPut_CMC:testSellerCollateralIsReducedIfExpiresITM() (gas: 113051) +TestSettleCollateralizedPut_CMC:testSellerCanClearOnlyExpiredOptions() (gas: 270134) +TestSettleCollateralizedPut_CMC:testSellerCollateralIsReducedIfExpiresITM() (gas: 113206) TestSettleCollateralizedPut_CMC:testShouldGetNothingIfExpiresOTM() (gas: 103283) TestSettleCollateralizedPut_CMC:testShouldGetPayoutIfExpiresIMT() (gas: 109065) TestSettleCollateralizedPut_CMC:testUtils() (gas: 167) TestSettleCollateralizedPut_CMP:test() (gas: 164) TestSettleCollateralizedPut_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestSettleCollateralizedPut_CMP:testShouldGetPutPayoutAndDeductedDebt() (gas: 195429) -TestSettleCollateralizedPut_CMP:testShouldGetPutPayoutAndDeductedDebtFromSender() (gas: 219414) +TestSettleCollateralizedPut_CMP:testShouldGetPutPayoutAndDeductedDebt() (gas: 195540) +TestSettleCollateralizedPut_CMP:testShouldGetPutPayoutAndDeductedDebtFromSender() (gas: 219525) TestSettleCollateralizedPut_CMP:testUtils() (gas: 167) TestSettleCoveredCall_CMC:test() (gas: 186) -TestSettleCoveredCall_CMC:testSellerCanClearDebtIfExpiresOTM() (gas: 106560) -TestSettleCoveredCall_CMC:testSellerCanClearMultipleExpiredOptions() (gas: 249089) -TestSettleCoveredCall_CMC:testSellerCanClearOnlyExpiredOptions() (gas: 273089) -TestSettleCoveredCall_CMC:testSellerCollateralIsReducedIfExpiresITM() (gas: 114174) +TestSettleCoveredCall_CMC:testSellerCanClearDebtIfExpiresOTM() (gas: 106715) +TestSettleCoveredCall_CMC:testSellerCanClearMultipleExpiredOptions() (gas: 249309) +TestSettleCoveredCall_CMC:testSellerCanClearOnlyExpiredOptions() (gas: 273309) +TestSettleCoveredCall_CMC:testSellerCollateralIsReducedIfExpiresITM() (gas: 114329) TestSettleCoveredCall_CMC:testShouldGetNothingIfExpiresOTM() (gas: 103808) TestSettleCoveredCall_CMC:testShouldGetPayoutIfExpiresIMT() (gas: 127278) TestSettleCoveredCall_CMC:testUtils() (gas: 189) TestSettleCoveredCall_CMP:test() (gas: 164) TestSettleCoveredCall_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestSettleCoveredCall_CMP:testShouldGetCallPayoutAndDeductedDebt() (gas: 178259) -TestSettleCoveredCall_CMP:testShouldGetCallPayoutAndDeductedDebtFromSender() (gas: 219435) +TestSettleCoveredCall_CMP:testShouldGetCallPayoutAndDeductedDebt() (gas: 178370) +TestSettleCoveredCall_CMP:testShouldGetCallPayoutAndDeductedDebtFromSender() (gas: 219546) TestSettleCoveredCall_CMP:testUtils() (gas: 167) TestSettleOptionPartialMargin_CMC:test() (gas: 186) -TestSettleOptionPartialMargin_CMC:testCallITM() (gas: 336105) -TestSettleOptionPartialMargin_CMC:testPutITM() (gas: 333285) +TestSettleOptionPartialMargin_CMC:testCallITM() (gas: 336280) +TestSettleOptionPartialMargin_CMC:testPutITM() (gas: 333460) TestSettleOptionPartialMargin_CMC:testUtils() (gas: 144) TestSettleOptionPartialMargin_CMP:test() (gas: 164) -TestSettleOptionPartialMargin_CMP:testCall() (gas: 404711) +TestSettleOptionPartialMargin_CMP:testCall() (gas: 404756) TestSettleOptionPartialMargin_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestSettleOptionPartialMargin_CMP:testPut() (gas: 428071) +TestSettleOptionPartialMargin_CMP:testPut() (gas: 428116) TestSettleOptionPartialMargin_CMP:testUtils() (gas: 167) TestSettleOption_CMP:test() (gas: 164) TestSettleOption_CMP:testForgeCoverageIgnoreThis() (gas: 208) @@ -389,16 +394,16 @@ TestSettleOption_CMP:testGetsNothingFromOptionPastExerciseWindow() (gas: 59025) TestSettleOption_CMP:testUtils() (gas: 144) TestSettleShortPositions_CMP:test() (gas: 164) TestSettleShortPositions_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestSettleShortPositions_CMP:testSellerCanClearCallDebtAfterWindowClosed() (gas: 267847) -TestSettleShortPositions_CMP:testSellerCanClearPartialCallDebtAfterWindowClosed() (gas: 419134) -TestSettleShortPositions_CMP:testSellerCanClearPartialPutDebtAfterWindowClosed() (gas: 419502) -TestSettleShortPositions_CMP:testSellerCanClearPutDebtAfterWindowClosed() (gas: 268095) -TestSettleShortPositions_CMP:testSellerCannotClearCallDebtAfterExpiryBeforeWindowClosed() (gas: 339636) -TestSettleShortPositions_CMP:testSellerCannotClearPutDebtAfterExpiryBeforeWindowClosed() (gas: 340154) +TestSettleShortPositions_CMP:testSellerCanClearCallDebtAfterWindowClosed() (gas: 267759) +TestSettleShortPositions_CMP:testSellerCanClearPartialCallDebtAfterWindowClosed() (gas: 419157) +TestSettleShortPositions_CMP:testSellerCanClearPartialPutDebtAfterWindowClosed() (gas: 419525) +TestSettleShortPositions_CMP:testSellerCanClearPutDebtAfterWindowClosed() (gas: 268007) +TestSettleShortPositions_CMP:testSellerCannotClearCallDebtAfterExpiryBeforeWindowClosed() (gas: 339548) +TestSettleShortPositions_CMP:testSellerCannotClearPutDebtAfterExpiryBeforeWindowClosed() (gas: 340066) TestSettleShortPositions_CMP:testUtils() (gas: 167) TestSettleSocializedLosses_CMP:test() (gas: 164) TestSettleSocializedLosses_CMP:testForgeCoverageIgnoreThis() (gas: 208) -TestSettleSocializedLosses_CMP:testSocializeLoss() (gas: 540158) +TestSettleSocializedLosses_CMP:testSocializeLoss() (gas: 540137) TestSettleSocializedLosses_CMP:testUtils() (gas: 144) TestStrangles_CMCM:testLongStrangle() (gas: 44468) TestStrangles_CMCM:testShortStrangles() (gas: 38483) @@ -443,19 +448,19 @@ TestStructures_CMPM:testVerifyInputs2() (gas: 45961) TestStructures_CMPM:testVerifyInputs3() (gas: 74469) TestStructures_CMPM:testVerifyInputs4() (gas: 55744) TestTransfer_CMC:test() (gas: 208) -TestTransfer_CMC:testCannotTransferCollateralWhenShortExists() (gas: 122620) -TestTransfer_CMC:testCannotTransferLongWhenTooLittleCollateral() (gas: 175020) -TestTransfer_CMC:testCannotTransferShortWhenReceiverHasTooLittleCollateral() (gas: 170681) -TestTransfer_CMC:testCannotTransferShortWithNoAccess() (gas: 33910) -TestTransfer_CMC:testTransferCollateral() (gas: 262268) +TestTransfer_CMC:testCannotTransferCollateralWhenShortExists() (gas: 122685) +TestTransfer_CMC:testCannotTransferLongWhenTooLittleCollateral() (gas: 175085) +TestTransfer_CMC:testCannotTransferShortWhenReceiverHasTooLittleCollateral() (gas: 170746) +TestTransfer_CMC:testCannotTransferShortWithNoAccess() (gas: 33975) +TestTransfer_CMC:testTransferCollateral() (gas: 262423) TestTransfer_CMC:testUtils() (gas: 189) TestTransfer_CMP:test() (gas: 186) -TestTransfer_CMP:testCannotTransferCollateralWhenShortExists() (gas: 119431) -TestTransfer_CMP:testCannotTransferLongWhenTooLittleCollateral() (gas: 171614) -TestTransfer_CMP:testCannotTransferShortWhenReceiverHasTooLittleCollateral() (gas: 167507) -TestTransfer_CMP:testCannotTransferShortWithNoAccess() (gas: 33953) +TestTransfer_CMP:testCannotTransferCollateralWhenShortExists() (gas: 119409) +TestTransfer_CMP:testCannotTransferLongWhenTooLittleCollateral() (gas: 171592) +TestTransfer_CMP:testCannotTransferShortWhenReceiverHasTooLittleCollateral() (gas: 167485) +TestTransfer_CMP:testCannotTransferShortWithNoAccess() (gas: 33931) TestTransfer_CMP:testForgeCoverageIgnoreThis() (gas: 230) -TestTransfer_CMP:testTransferCollateral() (gas: 259311) +TestTransfer_CMP:testTransferCollateral() (gas: 259245) TestTransfer_CMP:testUtils() (gas: 189) TestVanillaCall_CMM:testMarginRequirementVanillaCall1() (gas: 25527) TestVanillaCall_CMPM:testMarginRequirementVanillaCall1() (gas: 25527) diff --git a/script/deploy-upgrade-cash.sol b/script/deploy-upgrade-cash.sol index ce2951c..b8db234 100644 --- a/script/deploy-upgrade-cash.sol +++ b/script/deploy-upgrade-cash.sol @@ -27,7 +27,4 @@ contract Deploy is Script { console.log("CrossMargin Cash Engine: \t\t\t", engineImplementation); } - - // add a function prefixed with test here so forge coverage will ignore this file - function testChill() public {} } diff --git a/script/deploy-upgrade-physical.sol b/script/deploy-upgrade-physical.sol index 06e8fb8..0907443 100644 --- a/script/deploy-upgrade-physical.sol +++ b/script/deploy-upgrade-physical.sol @@ -5,7 +5,6 @@ import "forge-std/Script.sol"; import "../src/settled-physical/CrossMarginPhysicalEngine.sol"; - contract DeployPhysicalMarginEngine is Script { function run() external { console.log("Deployer", msg.sender); @@ -13,14 +12,13 @@ contract DeployPhysicalMarginEngine is Script { vm.startBroadcast(); // ============ Deploy Cross Margin Engine (Upgradable) ============== // - address engineImplementation = address(new CrossMarginPhysicalEngine(vm.envAddress("PomaceProxy"), vm.envAddress("PomaceOptionToken"))); + address engineImplementation = + address(new CrossMarginPhysicalEngine(vm.envAddress("PomaceProxy"), vm.envAddress("PomaceOptionToken"))); console.log("CrossMargin Physical Engine: \t\t", engineImplementation); vm.stopBroadcast(); } - function deployCrossMarginPhysicalEngine(address pomace, address optionToken) public { - - } + function deployCrossMarginPhysicalEngine(address pomace, address optionToken) public {} }