Class InsufficientFundsError

Thrown, when user doesn't have enough balance.

Hierarchy

Constructors

Properties

balance: BigNumber

Token's balance on user wallet in Eth units.

cause?: unknown
message: string
name: string
requiredBalance: BigNumber

Required token's amount to swap in Eth units.

stack?: string

Token to swap.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc