diff --git a/.gas-snapshot b/.gas-snapshot index edbc069a..2d068fc4 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,10 +1,12 @@ -EnforcerTest:testCollateralEnforcer() (gas: 954073) -EnforcerTest:testFailCollateralEnforcerDifferentCollateral() (gas: 834092) -EnforcerTest:testFailRateEnforcerMaxCarryRate() (gas: 789228) -EnforcerTest:testFailRateEnforcerMaxRate() (gas: 789200) -EnforcerTest:testFailRateEnforcerMaxRateAndMaxCarryRate() (gas: 789065) -EnforcerTest:testRateEnforcerBasic() (gas: 911246) -EnforcerTest:testTermEnforcerBasic() (gas: 983574) +DiffFuzzTestStarPortLib:testSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 880511, ~: 882230) +DiffFuzzTestStarPortLib:testUnboundSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 232905, ~: 237832) +EnforcerTest:testCollateralEnforcer() (gas: 954065) +EnforcerTest:testFailCollateralEnforcerDifferentCollateral() (gas: 834084) +EnforcerTest:testFailRateEnforcerMaxCarryRate() (gas: 789220) +EnforcerTest:testFailRateEnforcerMaxRate() (gas: 789192) +EnforcerTest:testFailRateEnforcerMaxRateAndMaxCarryRate() (gas: 789057) +EnforcerTest:testRateEnforcerBasic() (gas: 911238) +EnforcerTest:testTermEnforcerBasic() (gas: 983566) TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1218188) TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 858353) TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 894602) @@ -56,22 +58,22 @@ TestLoanCombinations:testLoanSimpleInterestEnglishFixed() (gas: 701482) TestLoanManager:testCannotIssueSameLoanTwice() (gas: 1529536) TestLoanManager:testCannotSettleInvalidLoan() (gas: 72844) TestLoanManager:testCannotSettleUnlessValidCustodian() (gas: 68990) -TestLoanManager:testCaveatEnforcerInvalidOrigination() (gas: 1797025) +TestLoanManager:testCaveatEnforcerInvalidOrigination() (gas: 1797017) TestLoanManager:testDefaultFeeRake() (gas: 403187) TestLoanManager:testExoticDebtWithNoCaveatsAsBorrower() (gas: 1587178) -TestLoanManager:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 1677088) -TestLoanManager:testGenerateOrder() (gas: 1495062) +TestLoanManager:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 1677080) +TestLoanManager:testGenerateOrder() (gas: 1495054) TestLoanManager:testGenerateOrderInvalidAction() (gas: 1354698) TestLoanManager:testGenerateOrderNotSeaport() (gas: 13023) TestLoanManager:testInitializedFlagSetProperly() (gas: 65194) TestLoanManager:testInvalidDebtLength() (gas: 39181) -TestLoanManager:testInvalidDebtType() (gas: 1364311) +TestLoanManager:testInvalidDebtType() (gas: 1364303) TestLoanManager:testInvalidMaximumSpentEmpty() (gas: 50192) TestLoanManager:testIssued() (gas: 67041) TestLoanManager:testName() (gas: 7209) TestLoanManager:testNativeDebtWithNoCaveatsAsBorrower() (gas: 1500521) -TestLoanManager:testNativeDebtWithNoCaveatsNotAsBorrower() (gas: 1541426) -TestLoanManager:testNativeDebtWithNoCaveatsNotAsBorrowerFeesOn() (gas: 1604818) +TestLoanManager:testNativeDebtWithNoCaveatsNotAsBorrower() (gas: 1541418) +TestLoanManager:testNativeDebtWithNoCaveatsNotAsBorrowerFeesOn() (gas: 1604810) TestLoanManager:testNonDefaultCustodianCustodyCallFails() (gas: 23953) TestLoanManager:testNonDefaultCustodianCustodyCallSuccess() (gas: 25327) TestLoanManager:testNonPayableFunctions() (gas: 109562) @@ -92,13 +94,13 @@ TestLoanManager:testSymbol() (gas: 7238) TestLoanManager:testTokenURI() (gas: 64967) TestLoanManager:testTokenURIInvalidLoan() (gas: 13290) TestLoanManager:testTransferFromFailFromSeaport() (gas: 82187) -TestNewLoan:testBuyNowPayLater() (gas: 1143307) -TestNewLoan:testNewLoanERC721CollateralDefaultTerms2():((uint256,address,address,address,address,(uint8,address,uint256,uint256)[],(uint8,address,uint256,uint256)[],(address,bytes,address,bytes,address,bytes))) (gas: 982374) -TestNewLoan:testNewLoanERC721CollateralLessDebtThanOffered():((uint256,address,address,address,address,(uint8,address,uint256,uint256)[],(uint8,address,uint256,uint256)[],(address,bytes,address,bytes,address,bytes))) (gas: 982708) +TestNewLoan:testBuyNowPayLater() (gas: 1143299) +TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 982366) +TestNewLoan:testNewLoanERC721CollateralLessDebtThanOffered() (gas: 982700) TestNewLoan:testNewLoanRefinanceNew() (gas: 702267) -TestNewLoan:testSettleLoan() (gas: 1223453) +TestNewLoan:testSettleLoan() (gas: 1223445) +TestRefStarPortLib:testSpentToReceived() (gas: 13315) +TestRefStarPortLib:testValidateSalt(address,bytes32) (runs: 256, μ: 33865, ~: 33865) TestRepayLoan:testRepayLoan() (gas: 683942) -TestStarLiteUtils:testEncodeReceivedWithRecipient() (gas: 17955) -TestStarLiteUtils:testSpentToReceived() (gas: 17708) -TestStarLiteUtils:testValidateSaltOpt(address,bytes32) (runs: 256, μ: 26479, ~: 26479) -TestStarLiteUtils:testValidateSaltRef(address,bytes32) (runs: 256, μ: 26849, ~: 26849) \ No newline at end of file +TestStarPortLib:testSpentToReceived() (gas: 13315) +TestStarPortLib:testValidateSalt(address,bytes32) (runs: 256, μ: 33865, ~: 33865) \ No newline at end of file diff --git a/test/fuzz-testing/differential-fuzzing/TestStarPortLib.sol b/test/fuzz-testing/differential-fuzzing/TestStarPortLib.sol index a7c6adf9..d4835cfb 100644 --- a/test/fuzz-testing/differential-fuzzing/TestStarPortLib.sol +++ b/test/fuzz-testing/differential-fuzzing/TestStarPortLib.sol @@ -52,7 +52,6 @@ contract DiffFuzzTestStarPortLib is Test, Bound, DeepEq { assertTrue(success, "expected success"); } } - } abstract contract BaseTestStarPortLib is Test {