From a8f6f471f5190b4334c3d69a91dd7a3ba1780f90 Mon Sep 17 00:00:00 2001 From: Andrew Redden Date: Fri, 22 Dec 2023 17:57:00 +0100 Subject: [PATCH 1/2] update snapshot --- .gas-snapshot | 98 +++++++++++++++++++++++++-------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index a5cc648..dd6052d 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,44 +1,44 @@ -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaim() (gas: 653231) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaimRandomFulfiller() (gas: 644215) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1042358) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 666730) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 1438180) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaim() (gas: 654229) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaimRandomFulfiller() (gas: 645213) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1082141) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 667728) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 1439178) TestAstariaV1Pricing:testGetRefinanceConsiderationAsBorrowerZeroRate() (gas: 79783) -TestAstariaV1Pricing:testGetRefinanceConsiderationInsufficientRefinance() (gas: 111189) -TestAstariaV1Pricing:testGetRefinanceConsiderationInvalidRefinance() (gas: 88304) -TestAstariaV1Pricing:testGetRefinanceConsiderationValidEqualRate() (gas: 149516) +TestAstariaV1Pricing:testGetRefinanceConsiderationInsufficientRefinance() (gas: 111278) +TestAstariaV1Pricing:testGetRefinanceConsiderationInvalidRefinance() (gas: 88414) +TestAstariaV1Pricing:testGetRefinanceConsiderationValidEqualRate() (gas: 149494) TestAstariaV1Pricing:testGetRefinanceConsiderationValidHigherRate() (gas: 162892) -TestAstariaV1Pricing:testGetRefinanceConsiderationValidLowerRate() (gas: 157711) -TestAstariaV1Pricing:testGetRefinanceConsiderationZeroRate() (gas: 81207) +TestAstariaV1Pricing:testGetRefinanceConsiderationValidLowerRate() (gas: 157689) +TestAstariaV1Pricing:testGetRefinanceConsiderationZeroRate() (gas: 81185) TestAstariaV1Pricing:testGetRefinanceNewDecimalMismatch() (gas: 81092) TestAstariaV1Pricing:testV1PricingValidateInvalid() (gas: 69869) TestAstariaV1Pricing:testV1PricingValidateValid() (gas: 69677) -TestAstariaV1Settlement:testGetAuctionStart() (gas: 468743) -TestAstariaV1Settlement:testGetAuctionStartNotStarted() (gas: 468163) -TestAstariaV1Settlement:testGetCurrentAuctionPrice() (gas: 483815) -TestAstariaV1Settlement:testGetCurrentAuctionPriceNoAuction() (gas: 471816) -TestAstariaV1Settlement:testGetSettlementConsiderationDutchAuctionSettlementAbove() (gas: 524599) -TestAstariaV1Settlement:testGetSettlementConsiderationFailedDutchAuction() (gas: 484272) -TestAstariaV1Settlement:testGetSettlementConsiderationLoanNotRecalled() (gas: 474409) -TestAstariaV1Settlement:testGetSettlementConsiderationLoanRecalledByLender() (gas: 506886) -TestAstariaV1Settlement:testGetSettlementConsiderationNoRecallRate() (gas: 486189) -TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 454714) -TestAstariaV1Settlement:testV1SettlementValidateInvalid() (gas: 62616) -TestAstariaV1Settlement:testV1SettlementValidateValid() (gas: 61991) -TestAstariaV1Status:testCannotRecallTwice() (gas: 581966) -TestAstariaV1Status:testCannotWithdrawLoanHasNotBeenRefinanced() (gas: 463071) -TestAstariaV1Status:testCannotWithdrawWithdrawDoesNotExist() (gas: 469779) -TestAstariaV1Status:testGenerateRecallConsideration() (gas: 508246) -TestAstariaV1Status:testInvalidRecallInvalidStakeType() (gas: 523692) -TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 510984) -TestAstariaV1Status:testIsActive() (gas: 467865) -TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 596425) -TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 594357) -TestAstariaV1Status:testRecallAndRefinanceInsideWindow() (gas: 753362) -TestAstariaV1Status:testRecallRateActiveRecall() (gas: 582949) -TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 466199) -TestAstariaV1Status:testV1StatusValidateInValid() (gas: 69799) -TestAstariaV1Status:testV1StatusValidateValid() (gas: 63252) +TestAstariaV1Settlement:testGetAuctionStart() (gas: 469648) +TestAstariaV1Settlement:testGetAuctionStartNotStarted() (gas: 469090) +TestAstariaV1Settlement:testGetCurrentAuctionPrice() (gas: 484742) +TestAstariaV1Settlement:testGetCurrentAuctionPriceNoAuction() (gas: 472721) +TestAstariaV1Settlement:testGetSettlementConsiderationDutchAuctionSettlementAbove() (gas: 525636) +TestAstariaV1Settlement:testGetSettlementConsiderationFailedDutchAuction() (gas: 485177) +TestAstariaV1Settlement:testGetSettlementConsiderationLoanNotRecalled() (gas: 475336) +TestAstariaV1Settlement:testGetSettlementConsiderationLoanRecalledByLender() (gas: 507903) +TestAstariaV1Settlement:testGetSettlementConsiderationNoRecallRate() (gas: 487094) +TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 455619) +TestAstariaV1Settlement:testV1SettlementValidateInvalid() (gas: 62594) +TestAstariaV1Settlement:testV1SettlementValidateValid() (gas: 61969) +TestAstariaV1Status:testCannotRecallTwice() (gas: 582831) +TestAstariaV1Status:testCannotWithdrawLoanHasNotBeenRefinanced() (gas: 463975) +TestAstariaV1Status:testCannotWithdrawWithdrawDoesNotExist() (gas: 470662) +TestAstariaV1Status:testGenerateRecallConsideration() (gas: 509173) +TestAstariaV1Status:testInvalidRecallInvalidStakeType() (gas: 524619) +TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 511911) +TestAstariaV1Status:testIsActive() (gas: 468770) +TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 597332) +TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 595264) +TestAstariaV1Status:testRecallAndRefinanceInsideWindow() (gas: 767128) +TestAstariaV1Status:testRecallRateActiveRecall() (gas: 583834) +TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 467126) +TestAstariaV1Status:testV1StatusValidateInValid() (gas: 69886) +TestAstariaV1Status:testV1StatusValidateValid() (gas: 63230) TestCompoundInterest:testDecimalsTooHigh() (gas: 3340) TestCompoundInterest:testDecimalsTooLowZero() (gas: 3391) TestCompoundInterest:testInterestAccrual() (gas: 67017) @@ -47,17 +47,17 @@ TestCompoundInterest:testRateExceedsMaxRecallRate() (gas: 3319) TestCompoundInterest:testRateTooLowOne() (gas: 5105) TestCompoundInterest:testRateTooLowOneNonWADDecimal() (gas: 6412) TestCompoundInterest:testRateTooLowZero() (gas: 5126) -TestV1BorrowerEnforcer:testFuzzRateMethods((uint256,uint256,uint256),uint256) (runs: 200, μ: 1107, ~: 1107) +TestV1BorrowerEnforcer:testFuzzRateMethods((uint256,uint256,uint256),uint256) (runs: 200, μ: 1218, ~: 1218) TestV1BorrowerEnforcer:testRevertLocateCurrentRateAndAmount() (gas: 61164) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerAmountOOB() (gas: 114125) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtBundlesNotSupported() (gas: 75113) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerEnd() (gas: 121194) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerHalfway() (gas: 116129) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateGTCurrent() (gas: 95445) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateLTCurrent() (gas: 102645) -TestV1BorrowerEnforcer:testV1BorrowerEnforcerStart() (gas: 99757) -TestV1LenderEnforcer:testV1LenderEnforcerAdditionalTransfers() (gas: 119520) -TestV1LenderEnforcer:testV1LenderEnforcerAmount() (gas: 118376) -TestV1LenderEnforcer:testV1LenderEnforcerDebtBundlesNotSupported() (gas: 75149) -TestV1LenderEnforcer:testV1LenderEnforcerMatchIdentifier() (gas: 126134) -TestV1LenderEnforcer:testV1LenderEnforcerRate() (gas: 118310) \ No newline at end of file +TestV1BorrowerEnforcer:testV1BorrowerEnforcerAmountOOB() (gas: 115487) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtBundlesNotSupported() (gas: 75147) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerEnd() (gas: 121463) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerHalfway() (gas: 116278) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateGTCurrent() (gas: 95501) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateLTCurrent() (gas: 102760) +TestV1BorrowerEnforcer:testV1BorrowerEnforcerStart() (gas: 99872) +TestV1LenderEnforcer:testV1LenderEnforcerAdditionalTransfers() (gas: 120848) +TestV1LenderEnforcer:testV1LenderEnforcerAmount() (gas: 119780) +TestV1LenderEnforcer:testV1LenderEnforcerDebtBundlesNotSupported() (gas: 75294) +TestV1LenderEnforcer:testV1LenderEnforcerMatchIdentifier() (gas: 126308) +TestV1LenderEnforcer:testV1LenderEnforcerRate() (gas: 118506) \ No newline at end of file From 50792be5775b15dec36315673e0e2c431c26b4b8 Mon Sep 17 00:00:00 2001 From: Andrew Redden Date: Fri, 22 Dec 2023 17:58:06 +0100 Subject: [PATCH 2/2] update starport pointer --- lib/starport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/starport b/lib/starport index 7b6aa66..41af20b 160000 --- a/lib/starport +++ b/lib/starport @@ -1 +1 @@ -Subproject commit 7b6aa667c22787bd0ddeaa5b0f3d05339b3968da +Subproject commit 41af20ba6a355e51d1b266c9a2290e456153bef8