diff --git a/.gas-snapshot b/.gas-snapshot index c050368..2baae18 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,3 +1,9 @@ +AcrossActionsTest:testDepositV3RevertsIfInputTokenIsNotWrappedNativeToken() (gas: 101197) +AcrossActionsTest:testDepositV3RevertsIfInvalidFillDeadline() (gas: 94184) +AcrossActionsTest:testDepositV3RevertsIfInvalidQuoteTimestamp() (gas: 94300) +AcrossActionsTest:testDepositV3RevertsIfNotEnoughInputToken() (gas: 99828) +AcrossActionsTest:testDepositV3WithERC20() (gas: 93039) +AcrossActionsTest:testDepositV3WithNativeToken() (gas: 119176) ApproveAndSwapTest:testSwap() (gas: 275122) ApproveAndSwapTest:testSwapFailsIfWeExpectedTooMuch() (gas: 339569) ApproveAndSwapTest:testSwapFailsWithNoApproval() (gas: 96664) @@ -22,10 +28,10 @@ GetDripTest:testDrip() (gas: 118389) MorphoActionsTest:testRepayAndWithdrawCollateral() (gas: 126133) MorphoActionsTest:testRepayMaxAndWithdrawCollateral() (gas: 100292) MorphoActionsTest:testSupplyCollateralAndBorrow() (gas: 247518) -MorphoInfoTest:testBaseMainnet() (gas: 1622233) -MorphoInfoTest:testBaseSepolia() (gas: 743646) -MorphoInfoTest:testEthMainnet() (gas: 2636638) -MorphoInfoTest:testEthSepolia() (gas: 644206) +MorphoInfoTest:testBaseMainnet() (gas: 1640071) +MorphoInfoTest:testBaseSepolia() (gas: 759985) +MorphoInfoTest:testEthMainnet() (gas: 2654795) +MorphoInfoTest:testEthSepolia() (gas: 721288) MorphoRewardsActionsTest:testClaim() (gas: 108754) MorphoRewardsActionsTest:testClaimAll() (gas: 180588) MorphoVaultActionsTest:testDeposit() (gas: 759946) @@ -61,22 +67,24 @@ QuotecallTest:testRevertsWhenQuoteTooHigh() (gas: 132485) QuotecallTest:testRevertsWhenQuoteTooLow() (gas: 132327) QuotecallTest:testSimpleCounterAndPayWithUSDC() (gas: 137950) QuotecallTest:testSimpleTransferTokenAndPayWithUSDC() (gas: 139316) -RecurringSwapTest:testCancelRecurringSwap() (gas: 275992) -RecurringSwapTest:testRecurringSwapCanSwapMultipleTimes() (gas: 340719) -RecurringSwapTest:testRecurringSwapCannotSwapMultipleTimesForMissedWindows() (gas: 341492) -RecurringSwapTest:testRecurringSwapExactInAlternateSwap() (gas: 217681) -RecurringSwapTest:testRecurringSwapExactInSwap() (gas: 225425) -RecurringSwapTest:testRecurringSwapExactOutAlternateSwap() (gas: 220999) -RecurringSwapTest:testRecurringSwapExactOutSwap() (gas: 227339) -RecurringSwapTest:testRecurringSwapWithDifferentCalldata() (gas: 577151) -RecurringSwapTest:testRecurringSwapWithMultiplePriceFeeds() (gas: 242483) -RecurringSwapTest:testRevertsForExpiredQuarkOperation() (gas: 9916) -RecurringSwapTest:testRevertsForInvalidInput() (gas: 93610) -RecurringSwapTest:testRevertsForSwapBeforeNextSwapWindow() (gas: 248353) +RecurringSwapTest:testCancelRecurringSwap() (gas: 276138) +RecurringSwapTest:testRecurringSwapCanSwapMultipleTimes() (gas: 320997) +RecurringSwapTest:testRecurringSwapCannotSwapMultipleTimesForMissedWindows() (gas: 322894) +RecurringSwapTest:testRecurringSwapExactInAlternateSwap() (gas: 217827) +RecurringSwapTest:testRecurringSwapExactInSwap() (gas: 225593) +RecurringSwapTest:testRecurringSwapExactOutAlternateSwap() (gas: 221123) +RecurringSwapTest:testRecurringSwapExactOutSwap() (gas: 227463) +RecurringSwapTest:testRecurringSwapWithDifferentCalldata() (gas: 550677) +RecurringSwapTest:testRecurringSwapWithMultiplePriceFeeds() (gas: 242704) +RecurringSwapTest:testRevertsForBadPrice() (gas: 79021) +RecurringSwapTest:testRevertsForExpiredQuarkOperation() (gas: 9938) +RecurringSwapTest:testRevertsForInvalidInput() (gas: 93654) +RecurringSwapTest:testRevertsForStalePrice() (gas: 78874) +RecurringSwapTest:testRevertsForSwapBeforeNextSwapWindow() (gas: 248499) RecurringSwapTest:testRevertsForSwapBeforeStartTime() (gas: 9223372036854754743) -RecurringSwapTest:testRevertsForSwapWhenSwapWindowIsClosed() (gas: 342645) -RecurringSwapTest:testRevertsWhenSlippageParamsConfiguredWrong() (gas: 229363) -RecurringSwapTest:testRevertsWhenSlippageTooHigh() (gas: 229583) +RecurringSwapTest:testRevertsForSwapWhenSwapWindowIsClosed() (gas: 322923) +RecurringSwapTest:testRevertsWhenSlippageParamsConfiguredWrong() (gas: 229487) +RecurringSwapTest:testRevertsWhenSlippageTooHigh() (gas: 229729) SupplyActionsTest:testInvalidInput() (gas: 45797) SupplyActionsTest:testRepayBorrow() (gas: 71850) SupplyActionsTest:testSupply() (gas: 114160) @@ -95,14 +103,16 @@ TransferActionsTest:testTransferNativeTokenToEOA() (gas: 77491) TransferActionsTest:testTransferNativeTokenToQuarkWallet() (gas: 52157) TransferActionsTest:testTransferReentrancyAttackSuccessWithCallbackEnabled() (gas: 94922) TransferActionsTest:testTransferSuccessWithEvilReceiverWithoutAttackAttempt() (gas: 56348) -UniswapFlashLoanTest:testFlashLoanForCollateralSwapOnCompound() (gas: 369646) -UniswapFlashLoanTest:testRevertsForInsufficientFundsToRepayFlashLoan() (gas: 139917) -UniswapFlashLoanTest:testRevertsForInvalidCaller() (gas: 47459) -UniswapFlashLoanTest:testTokensOrderInvariant() (gas: 82904) -UniswapFlashSwapExactOutTest:testInvalidCallerFlashSwap() (gas: 47655) -UniswapFlashSwapExactOutTest:testNotEnoughToPayFlashSwap() (gas: 235116) -UniswapFlashSwapExactOutTest:testRevertsIfCalledDirectly() (gas: 104305) -UniswapFlashSwapExactOutTest:testUniswapFlashSwapExactOutLeverageComet() (gas: 312269) +UniswapFlashLoanTest:testFlashLoanForCollateralSwapOnCompound() (gas: 369775) +UniswapFlashLoanTest:testRevertsForInsufficientFundsToRepayFlashLoan() (gas: 140068) +UniswapFlashLoanTest:testRevertsForInvalidCaller() (gas: 47588) +UniswapFlashLoanTest:testRevertsForSecondCallback() (gas: 129088) +UniswapFlashLoanTest:testTokensOrderInvariant() (gas: 83055) +UniswapFlashSwapExactOutTest:testInvalidCallerFlashSwap() (gas: 47806) +UniswapFlashSwapExactOutTest:testNotEnoughToPayFlashSwap() (gas: 235245) +UniswapFlashSwapExactOutTest:testRevertsForSecondCallback() (gas: 112074) +UniswapFlashSwapExactOutTest:testRevertsIfCalledDirectly() (gas: 104456) +UniswapFlashSwapExactOutTest:testUniswapFlashSwapExactOutLeverageComet() (gas: 312398) UniswapSwapActionsTest:testApprovalRefund() (gas: 160372) UniswapSwapActionsTest:testBuyAssetOneStop() (gas: 252378) UniswapSwapActionsTest:testBuyAssetTwoStops() (gas: 365490) diff --git a/src/builder/MorphoInfo.sol b/src/builder/MorphoInfo.sol index e3f69d2..78ea210 100644 --- a/src/builder/MorphoInfo.sol +++ b/src/builder/MorphoInfo.sol @@ -368,7 +368,12 @@ library MorphoInfo { ); // === Sepolia testnet morpho vaults === - // None + // USDC (Legend USDC) + addMorphoVaultAddress( + knownVaults, + MorphoVaultKey({chainId: 11155111, supplyAssetSymbol: "USDC"}), + 0x62559B2707013890FBB111280d2aE099a2EFc342 + ); // === Base Sepolia testnet morpho vaults === // None diff --git a/test/on-chain-info-verification/MorphoInfo.t.sol b/test/on-chain-info-verification/MorphoInfo.t.sol index e10d3d9..b15184f 100644 --- a/test/on-chain-info-verification/MorphoInfo.t.sol +++ b/test/on-chain-info-verification/MorphoInfo.t.sol @@ -42,7 +42,7 @@ contract MorphoInfoTest is Test { // Fork setup to get on-chain on base sepolia vm.createSelectFork( vm.envString("SEPOLIA_RPC_URL"), - 6546096 // 2024-08-21 16:27:00 PST + 7027030 // 2024-11-06 17:27:00 PST ); verifyKnownMarketsParams(11155111);