Skip to content

v2.0.1

Compare
Choose a tag to compare
@shoom3301 shoom3301 released this 03 Apr 11:14
· 116 commits to main since this release

v2.0.1

Changes

  1. Parse OrderBookApi.getQuote() error from http response
orderBookApi.getQuote(quoteParams, { chainId }).catch((error) => {
    console.log('Error', error)
  })

Before fix:

ApiError: Error quoting order

After fix:

{
    data: { fee_amount: '0x8cafa362dc8a38' },
    description: "The sell amount for the sell order is lower than the fee.",
    errorType: "SellAmountDoesNotCoverFee",
}