diff --git a/.gas-snapshot b/.gas-snapshot index 919f9aab..bae1615a 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,156 +1,156 @@ IntegrationTestCaveats:testInvalidCaveatLength() (gas: 130063) IntegrationTestCaveats:testInvalidCaveats() (gas: 162343) -IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 332499) -IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 283366) +IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 332477) +IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 283344) IntegrationTestCaveats:testOriginateWCaveatsAsBorrower() (gas: 308910) IntegrationTestCaveats:testOriginateWCaveatsExpired() (gas: 159572) -IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 168284) +IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 168349) IntegrationTestCaveats:testOriginateWCaveatsInvalidSalt() (gas: 317731) -IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 142245) +IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 142223) IntegrationTestCaveats:testOriginateWLenderApproval() (gas: 283680) IntegrationTestCaveats:testRefinanceAsLender() (gas: 1053706) IntegrationTestCaveats:testRefinanceCaveatFailure() (gas: 407873) IntegrationTestCaveats:testRefinanceLoanStartAtBlockTimestampInvalidLoan() (gas: 347714) -IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 456553) -IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 377235) +IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 456531) +IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 377213) IntegrationTestCaveats:testRefinanceWLenderApproval() (gas: 402865) ModuleTesting:testFixedTermDutchAuctionSettlement() (gas: 438055) ModuleTesting:testFixedTermDutchAuctionSettlementAuctionNotStarted() (gas: 441431) -ModuleTesting:testFixedTermDutchAuctionSettlementGetSettlementAuctionExpired() (gas: 440880) -ModuleTesting:testFixedTermDutchAuctionSettlementNotValid() (gas: 437089) -ModuleTesting:testFixedTermDutchAuctionSettlementValid() (gas: 437976) -ModuleTesting:testModuleValidation() (gas: 1274276) +ModuleTesting:testFixedTermDutchAuctionSettlementGetSettlementAuctionExpired() (gas: 440969) +ModuleTesting:testFixedTermDutchAuctionSettlementNotValid() (gas: 437067) +ModuleTesting:testFixedTermDutchAuctionSettlementValid() (gas: 437954) +ModuleTesting:testModuleValidation() (gas: 1274254) PausableNonReentrantImpl:test() (gas: 2464) PausableNonReentrantImpl:testReentrancy() (gas: 2757) -TestBorrowerEnforcer:testBERevertAdditionalTransfersFromBorrower() (gas: 76462) -TestBorrowerEnforcer:testBERevertInvalidLoanTerms() (gas: 81160) -TestBorrowerEnforcer:testBEValidLoanTerms() (gas: 72257) -TestBorrowerEnforcer:testBEValidLoanTermsAnyIssuer() (gas: 72343) -TestCustodian:testCannotLazyMintTwice() (gas: 82189) -TestCustodian:testCannotMintInvalidLoanInvalidCustodian() (gas: 72495) -TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 78027) -TestCustodian:testCustodianCannotBeAuthorized() (gas: 142186) -TestCustodian:testCustodySelector() (gas: 2697871) -TestCustodian:testDefaultCustodySelectorRevert() (gas: 72478) -TestCustodian:testGenerateOrderInvalidPostRepayment() (gas: 173136) -TestCustodian:testGenerateOrderInvalidPostSettlement() (gas: 163299) -TestCustodian:testGenerateOrderRepay() (gas: 177294) -TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 193780) -TestCustodian:testGenerateOrderRepayERC1155AndERC20() (gas: 875125) -TestCustodian:testGenerateOrderRepayERC1155AndERC20HandlerAuthorized() (gas: 804789) -TestCustodian:testGenerateOrderRepayInvalidHookAddress() (gas: 97670) -TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 92031) -TestCustodian:testGenerateOrderRepayNotBorrower() (gas: 106909) -TestCustodian:testGenerateOrderSettlement() (gas: 155010) -TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 160407) -TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 163477) -TestCustodian:testGenerateOrderSettlementUnauthorized() (gas: 101874) -TestCustodian:testGenerateOrdersWithLoanStartAtBlockTimestampInvalidLoan() (gas: 461635) +TestBorrowerEnforcer:testBERevertAdditionalTransfersFromBorrower() (gas: 76440) +TestBorrowerEnforcer:testBERevertInvalidLoanTerms() (gas: 81138) +TestBorrowerEnforcer:testBEValidLoanTerms() (gas: 72235) +TestBorrowerEnforcer:testBEValidLoanTermsAnyIssuer() (gas: 72321) +TestCustodian:testCannotLazyMintTwice() (gas: 82131) +TestCustodian:testCannotMintInvalidLoanInvalidCustodian() (gas: 72437) +TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 77947) +TestCustodian:testCustodianCannotBeAuthorized() (gas: 142196) +TestCustodian:testCustodySelector() (gas: 2697813) +TestCustodian:testDefaultCustodySelectorRevert() (gas: 72420) +TestCustodian:testGenerateOrderInvalidPostRepayment() (gas: 173141) +TestCustodian:testGenerateOrderInvalidPostSettlement() (gas: 163282) +TestCustodian:testGenerateOrderRepay() (gas: 177299) +TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 193763) +TestCustodian:testGenerateOrderRepayERC1155AndERC20() (gas: 875113) +TestCustodian:testGenerateOrderRepayERC1155AndERC20HandlerAuthorized() (gas: 804799) +TestCustodian:testGenerateOrderRepayInvalidHookAddress() (gas: 97653) +TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 92036) +TestCustodian:testGenerateOrderRepayNotBorrower() (gas: 106914) +TestCustodian:testGenerateOrderSettlement() (gas: 155015) +TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 160412) +TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 163460) +TestCustodian:testGenerateOrderSettlementUnauthorized() (gas: 101879) +TestCustodian:testGenerateOrdersWithLoanStartAtBlockTimestampInvalidLoan() (gas: 461640) TestCustodian:testGetBorrower() (gas: 78621) -TestCustodian:testInvalidAction() (gas: 173596) -TestCustodian:testInvalidActionRepayInActiveLoan() (gas: 130218) -TestCustodian:testInvalidActionSettleActiveLoan() (gas: 130156) -TestCustodian:testInvalidEncodedData() (gas: 26160) +TestCustodian:testInvalidAction() (gas: 173362) +TestCustodian:testInvalidActionRepayInActiveLoan() (gas: 130206) +TestCustodian:testInvalidActionSettleActiveLoan() (gas: 130166) +TestCustodian:testInvalidEncodedData() (gas: 26170) TestCustodian:testMintWithApprovalSetAsBorrower() (gas: 366756) -TestCustodian:testMintWithApprovalSetAsBorrowerInvalidLoan() (gas: 64523) -TestCustodian:testMintWithApprovalSetNotAuthorized() (gas: 66842) +TestCustodian:testMintWithApprovalSetAsBorrowerInvalidLoan() (gas: 64632) +TestCustodian:testMintWithApprovalSetNotAuthorized() (gas: 66873) TestCustodian:testName() (gas: 7099) -TestCustodian:testNonPayableFunctions() (gas: 215289) +TestCustodian:testNonPayableFunctions() (gas: 215173) TestCustodian:testOnlySeaport() (gas: 17918) -TestCustodian:testPreviewOrderNoActiveLoan() (gas: 105754) -TestCustodian:testPreviewOrderRepay() (gas: 230299) -TestCustodian:testPreviewOrderSettlement() (gas: 192027) -TestCustodian:testPreviewOrderSettlementInvalidFufliller() (gas: 108315) -TestCustodian:testPreviewOrderSettlementInvalidRepayer() (gas: 117026) -TestCustodian:testRatifyOrder() (gas: 184115) +TestCustodian:testPreviewOrderNoActiveLoan() (gas: 105759) +TestCustodian:testPreviewOrderRepay() (gas: 230309) +TestCustodian:testPreviewOrderSettlement() (gas: 192037) +TestCustodian:testPreviewOrderSettlementInvalidFufliller() (gas: 108320) +TestCustodian:testPreviewOrderSettlementInvalidRepayer() (gas: 117031) +TestCustodian:testRatifyOrder() (gas: 184120) TestCustodian:testSeaportMetadata() (gas: 8644) TestCustodian:testSupportsInterface() (gas: 9428) TestCustodian:testSymbol() (gas: 7216) -TestCustodian:testTokenURI() (gas: 84246) -TestCustodian:testTokenURIInvalidLoan() (gas: 13179) +TestCustodian:testTokenURI() (gas: 84130) +TestCustodian:testTokenURIInvalidLoan() (gas: 13157) TestLenderEnforcer:testLERevertAdditionalTransfersFromLender() (gas: 76455) TestLenderEnforcer:testLERevertInvalidLoanTerms() (gas: 81096) TestLenderEnforcer:testLEValidLoanTerms() (gas: 72169) -TestLenderEnforcer:testLEValidLoanTermsAnyBorrower() (gas: 72234) +TestLenderEnforcer:testLEValidLoanTermsAnyBorrower() (gas: 72323) TestLenderEnforcer:testLEValidLoanTermsWithAdditionalTransfers() (gas: 73525) TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 591836) -TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 599049) -TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 590320) -TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 580182) -TestNewLoan:testBuyNowPayLater() (gas: 2873894) -TestNewLoan:testInvalidSenderBNPL() (gas: 1613098) -TestNewLoan:testInvalidUserDataHashBNPL() (gas: 1615699) -TestNewLoan:testNewLoanAs1271ProxyAccountSender() (gas: 874195) -TestNewLoan:testNewLoanAs1271ProxyAccountThirdPartyFiller() (gas: 885184) -TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 429567) -TestNewLoan:testNewLoanRefinance() (gas: 589965) -TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 326073) -TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 384870) -TestNewLoan:testSettleLoan() (gas: 642193) -TestPausableNonReentrant:testNotOwner() (gas: 21276) -TestPausableNonReentrant:testPauseAndUnpause() (gas: 22643) +TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 599027) +TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 590298) +TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 580160) +TestNewLoan:testBuyNowPayLater() (gas: 2873886) +TestNewLoan:testInvalidSenderBNPL() (gas: 1613076) +TestNewLoan:testInvalidUserDataHashBNPL() (gas: 1615677) +TestNewLoan:testNewLoanAs1271ProxyAccountSender() (gas: 874238) +TestNewLoan:testNewLoanAs1271ProxyAccountThirdPartyFiller() (gas: 885130) +TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 429545) +TestNewLoan:testNewLoanRefinance() (gas: 590053) +TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 326051) +TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 384848) +TestNewLoan:testSettleLoan() (gas: 642171) +TestPausableNonReentrant:testNotOwner() (gas: 21254) +TestPausableNonReentrant:testPauseAndUnpause() (gas: 22621) TestPausableNonReentrant:testReentrancy() (gas: 15404) -TestPausableNonReentrant:testUnpauseWhenNotPaused() (gas: 12604) -TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 667213) -TestRepayLoan:testRepayLoanBase() (gas: 599977) -TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 438709) -TestRepayLoan:testRepayLoanInSettlement() (gas: 586024) -TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 604010) +TestPausableNonReentrant:testUnpauseWhenNotPaused() (gas: 12582) +TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 667191) +TestRepayLoan:testRepayLoanBase() (gas: 599955) +TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 438687) +TestRepayLoan:testRepayLoanInSettlement() (gas: 586002) +TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 604099) TestRepayLoan:testRepayLoanThatDoesNotExist() (gas: 858845) -TestSimpleInterestPricing:test_calculateInterest() (gas: 881296) -TestSimpleInterestPricing:test_getPaymentConsideration() (gas: 928510) -TestSimpleInterestPricing:test_getRefinanceConsideration() (gas: 919314) +TestSimpleInterestPricing:test_calculateInterest() (gas: 881274) +TestSimpleInterestPricing:test_getPaymentConsideration() (gas: 928599) +TestSimpleInterestPricing:test_getRefinanceConsideration() (gas: 919292) TestStarport:testAcquireTokensFail() (gas: 60408) TestStarport:testAcquireTokensSuccess() (gas: 162977) TestStarport:testActive() (gas: 69313) TestStarport:testAdditionalTransfers() (gas: 300732) TestStarport:testAdditionalTransfersOriginate() (gas: 275428) -TestStarport:testAdditionalTransfersRefinance() (gas: 218236) +TestStarport:testAdditionalTransfersRefinance() (gas: 218214) TestStarport:testApplyRefinanceConsiderationToLoanMalformed() (gas: 129974) -TestStarport:testCannotIssueSameLoanTwice() (gas: 364079) +TestStarport:testCannotIssueSameLoanTwice() (gas: 364167) TestStarport:testCannotOriginateWhilePaused() (gas: 73567) TestStarport:testCannotSettleInvalidLoan() (gas: 74903) TestStarport:testCannotSettleUnlessValidCustodian() (gas: 70941) -TestStarport:testCaveatEnforcerRevert() (gas: 102578) +TestStarport:testCaveatEnforcerRevert() (gas: 102667) TestStarport:testDefaultFeeRake1() (gas: 387829) -TestStarport:testDefaultFeeRake2() (gas: 450172) -TestStarport:testDefaultFeeRakeExoticDebt() (gas: 397652) -TestStarport:testEIP712Signing() (gas: 82998) +TestStarport:testDefaultFeeRake2() (gas: 450258) +TestStarport:testDefaultFeeRakeExoticDebt() (gas: 397630) +TestStarport:testEIP712Signing() (gas: 83067) TestStarport:testExoticDebtWithCustomPricingAndRepayment() (gas: 1237828) -TestStarport:testExoticDebtWithCustomPricingAndSettlement() (gas: 1692871) +TestStarport:testExoticDebtWithCustomPricingAndSettlement() (gas: 1692849) TestStarport:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 376830) -TestStarport:testIncrementCaveatNonce() (gas: 35292) +TestStarport:testIncrementCaveatNonce() (gas: 35270) TestStarport:testInitializedFlagSetProperly() (gas: 67438) TestStarport:testInvalidAdditionalTransfersOriginate() (gas: 230403) TestStarport:testInvalidAdditionalTransfersRefinance() (gas: 170796) -TestStarport:testInvalidAmountCollateral() (gas: 165945) -TestStarport:testInvalidAmountCollateral721() (gas: 165945) -TestStarport:testInvalidItemType() (gas: 151893) +TestStarport:testInvalidAmountCollateral() (gas: 165923) +TestStarport:testInvalidAmountCollateral721() (gas: 165923) +TestStarport:testInvalidItemType() (gas: 151871) TestStarport:testInvalidTransferLengthCollateral() (gas: 154162) -TestStarport:testInvalidTransferLengthDebt() (gas: 175961) -TestStarport:testInvalidateCaveatSalt() (gas: 33450) +TestStarport:testInvalidTransferLengthDebt() (gas: 175939) +TestStarport:testInvalidateCaveatSalt() (gas: 33428) TestStarport:testNonDefaultCustodianCustodyCallFails() (gas: 264244) TestStarport:testNonDefaultCustodianCustodyCallSuccess() (gas: 290391) TestStarport:testNonPayableFunctions() (gas: 114523) TestStarport:testOverrideFeeRake() (gas: 384063) TestStarport:testPause() (gas: 18237) -TestStarport:testRefinancePostRepaymentFails() (gas: 127886) +TestStarport:testRefinancePostRepaymentFails() (gas: 127973) TestStarport:testStargateGetOwner() (gas: 8808) TestStarport:testTokenNoCodeCollateral() (gas: 150684) -TestStarport:testTokenNoCodeDebt() (gas: 180957) +TestStarport:testTokenNoCodeDebt() (gas: 180935) TestStarport:testUnpause() (gas: 17341) TestStrategistOriginator:testEncodeWithAccountCounter() (gas: 12330) TestStrategistOriginator:testGetStrategistData() (gas: 1809233) TestStrategistOriginator:testIncrementCounterAsStrategist() (gas: 38790) -TestStrategistOriginator:testIncrementCounterNotAuthorized() (gas: 13423) -TestStrategistOriginator:testInvalidCollateral() (gas: 211024) -TestStrategistOriginator:testInvalidDeadline() (gas: 216845) -TestStrategistOriginator:testInvalidDebt() (gas: 212732) -TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 213106) -TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 213416) -TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 213371) -TestStrategistOriginator:testInvalidDebtLength() (gas: 212026) -TestStrategistOriginator:testInvalidOffer() (gas: 427827) -TestStrategistOriginator:testInvalidSigner() (gas: 215164) -TestStrategistOriginator:testSetStrategist() (gas: 17884) -TestStrategistOriginator:testWithdraw() (gas: 167966) \ No newline at end of file +TestStrategistOriginator:testIncrementCounterNotAuthorized() (gas: 13468) +TestStrategistOriginator:testInvalidCollateral() (gas: 211056) +TestStrategistOriginator:testInvalidDeadline() (gas: 216877) +TestStrategistOriginator:testInvalidDebt() (gas: 212764) +TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 213248) +TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 213470) +TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 213403) +TestStrategistOriginator:testInvalidDebtLength() (gas: 212058) +TestStrategistOriginator:testInvalidOffer() (gas: 427884) +TestStrategistOriginator:testInvalidSigner() (gas: 215218) +TestStrategistOriginator:testSetStrategist() (gas: 17862) +TestStrategistOriginator:testWithdraw() (gas: 167984) \ No newline at end of file