Skip to main content

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​

ParameterType
msgstring
httpCodenumber
minbigint
maxbigint

Returns​

OutOfBoundsError

Overrides​

RequestError.constructor

Properties​

httpCode​

httpCode: number;

Defined in: atomiq-sdk/src/errors/RequestError.ts:9

Inherited from​

RequestError.httpCode


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​

ParameterTypeDescription
msgstringRaw response
httpCodenumberHTTP response status code

Returns​

RequestError | OutOfBoundsError

Inherited from​

RequestError.parse