Lifi Trade Asset Exception
Errors that can be thrown by the high-level tradeAsset / pollStatus methods.
Inheritors
Types
The LiFi API returned an error payload (a populated error field without throwing) while fetching routes, resolving a route step, or polling status. detail carries the API message so the underlying cause is surfaced instead of a misleading generic error.
The step's transaction request was invalid: either a required field (e.g. from/to) was missing, or a numeric field (e.g. value/gas) held a value that couldn't be parsed into a valid RPC hex quantity.
The LiFi transfer reached a FAILED terminal state.
A confirmation closure was not provided when constructing the Lifi instance.
A signing closure was not provided when constructing the Lifi instance.
The step did not contain a transaction request to sign.
No routes were returned for the requested trade.
Polling failed fast after hitting the configured maxConsecutiveErrors cap. cause carries the underlying error that triggered the failure.
Polling exceeded the configured timeout. When the timeout is reached while transient errors were being retried, cause carries the most recent underlying error so the root cause isn't lost.
The selected route contains no steps.
The provided route index is out of bounds.
On-chain confirmation failed or reverted for the given transaction hash.