Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testnet vault address on sepolia #101

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 37 additions & 27 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion src/builder/MorphoInfo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/on-chain-info-verification/MorphoInfo.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading