Errors and reverts

All errors, including reverts, what they mean and how to resolve them. If any step fails, the entire transaction reverts and no funds move, apart from gas fees.

On this page

Custom errors

ErrorContractsMeaningWhat to do
ExpiredDeals, Checkout, Credit, BuilderDeadline has passed.Ask for new terms, or send with a later deadline.
BadSignatureDeals, CheckoutSignature does not fit the terms.Sign the exact terms again.
AlreadyConsumedDealsThis deal already settled or was cancelled.Agree on new terms with a new nonce.
NotAPartyDealsOnly the seller can cancel a deal, or the buyer of a one-wallet deal.Send from the seller’s wallet, or the named buyer’s.
NotWhitelistedDealsWallet is not on the list, or its proof does not fit the signed root.Take the deal from a listed wallet, with its own proof.
InvalidDealDealsTerms do not hold: a party missing or twice, an amount of 0, the asset as its own price, or a vesting field the shape does not take.Check the terms against the vesting shapes.
StreamMismatchDealsStream created differs from the one signed (recipient, deposit, cancelable or transferable).Nothing moved. Report it.
AlreadyPaidCheckoutThis invoice was paid before.Ask the merchant for a new invoice.
CancelledCheckoutMerchant withdrew this invoice.Ask the merchant for a new invoice.
NotMerchantCheckoutOnly the merchant can withdraw an invoice.Send from the merchant wallet.
InvalidInvoiceCheckoutInvoice is empty, or the merchant is paying their own invoice.Check the invoice and the sending wallet.
InvalidLegsCheckoutLegs do not add up to the invoice plus the fee, or there are too many.Use one or two legs that sum to the exact amount.
TransferMismatchDeals, Checkout, Credit, BuilderToken moved another amount than asked, such as a fee-on-transfer token.Use a token that moves exact amounts.
InsufficientOutputCheckoutSwap delivered less than its leg promised.Raise your maximum or retry with a fresh quote.
InputAboveMaxCheckoutLeg would cost more than your maximum.Raise your maximum or retry with a fresh quote.
AdapterNotAllowedCheckoutAdapter is not on the allowlist.Use an allowed adapter.
AdapterKeptFundsCheckoutAdapter tried to keep part of the input.Report it.
TokenNotAllowedDeals, Checkout, Credit, BuilderDeals: the address has no code or the token is blocked. Elsewhere: not allowed in this role.Check the token address, or use an allowed token.
AboveCapCheckoutAmount is above the token’s cap per transaction.Use a smaller amount.
AboveTxCapCredit, BuilderAmount is above the token’s cap per transaction.Use a smaller amount.
AboveDailyCapCredit, BuilderDay’s cap for this token is used up.Retry after 00:00 UTC.
FeeAboveMaxDeals, Checkout, Credit, BuilderCurrent fee is above the most you signed.Check the fee and sign again.
UnknownMarketCredit, BuilderMorpho Blue has no market with this id.Check the market parameters.
MarketNotAllowedCredit, BuilderMarket is not on the allowlist.Pick an allowed market.
InvalidRouteCreditTwo markets do not fit this move.Check the loan token and the collateral of both markets.
NothingToMoveCredit, BuilderPosition, or the flash loan, has nothing to move.Check the position and the amounts.
AboveMaxBorrowCreditNew debt would be above your maximum.Raise your maximum if you accept the new debt.
HealthTooLowCredit, BuilderHealth afterwards would be below your minimum or the floor.Use a smaller move or add collateral.
SwapBelowMinCredit, BuilderSwap delivered less than your minimum.Lower your minimum or retry.
SwapAboveMaxCreditSwap would cost more than your maximum.Raise your maximum or retry.
NotAuthorizedOnMorphoCredit, BuilderContract has no permission on Morpho for this wallet.Sign the two Morpho messages, or authorize with a direct call.
BadAuthorizationCredit, BuilderGrant and revoke messages do not match the caller and this contract.Sign both again.
BadStepCountBuilderSet has no blocks, or more than 12.Use 1 to 12 blocks.
VenueNotAllowedBuilderSwap venue is not on the allowlist.Use an allowed venue.
NoMinimumBuilderSwap block has no minimum output.Set the lowest output you accept.
StepFailedBuilderBlock reverted. The error carries its index and its reason.Read the reason and fix that block.
RepayShortBuilderSet ends with less of the flash loan’s token than the loan plus the fee.Make the set bring back enough, or borrow less.
BelowMinReturnBuilderLess came back to the wallet than your minimum.Lower your minimum or change the set.
EnforcedPauseDeals, Checkout, Credit, BuilderContract is paused.Wait until it resumes. Morpho positions stay manageable in Morpho, and streams keep unlocking.

Reverts inside Flash Builder and from Morpho

RevertWhenWhat to do
StepFailed(index, reason), before any token movesVenueNotAllowed, MarketNotAllowed, TokenNotAllowed, NoMinimum, SameToken, AmountNotAllowedFix block index
StepFailed(index, reason), while it runsNotEnoughHeld, NothingToMove, AboveTxCap, SwapBelowMin, or a Morpho stringFix block index
Flash Builder guardsUnexpectedCallback, FlashNotUsed, OnlySelf, SwapKeptFunds, HeldChanged, ApprovalLeft, TransferMismatchNot reached by a normal call
Flash Credit guardsUnexpectedCallback, FlashNotUsed, RepayMismatch, PositionNotCleared, SwapKeptFunds, NoSwapper, HeldChanged, ApprovalLeft, TransferMismatchNot reached by a normal call
Morphoinsufficient liquidity, insufficient collateralMove less
Morphosignature expired, invalid nonce, invalid signatureSign the authorization again with the current nonce