OutOfBoundsError
Defined in: atomiq-sdk/src/errors/RequestError.ts:47
An error indicating out of bounds (amount too high or too low) on swap initialization
Extends
Constructors
Constructor
new OutOfBoundsError(
msg,
httpCode,
min,
max): OutOfBoundsError;
Defined in: atomiq-sdk/src/errors/RequestError.ts:58
Parameters
| Parameter | Type |
|---|---|
msg | string |
httpCode | number |
min | bigint |
max | bigint |
Returns
OutOfBoundsError
Overrides
Properties
httpCode
httpCode: number;
Defined in: atomiq-sdk/src/errors/RequestError.ts:9
Inherited from
max
max: bigint;
Defined in: atomiq-sdk/src/errors/RequestError.ts:56
Swap maximum in base units of the token in which the quote was requested
min
min: bigint;
Defined in: atomiq-sdk/src/errors/RequestError.ts:52
Swap minimum in base units of the token in which the quote was requested
Methods
parse()
static parse(msg, httpCode): RequestError | OutOfBoundsError;
Defined in: atomiq-sdk/src/errors/RequestError.ts:28
Parses a message + a response code returned by the intermediary (LP) as an error
Parameters
| Parameter | Type | Description |
|---|---|---|
msg | string | Raw response |
httpCode | number | HTTP response status code |
Returns
RequestError | OutOfBoundsError