Skip to content

[bug]: clearer error with price oracle that does not support the asset requested #1326

@ZZiigguurraatt

Description

@ZZiigguurraatt

I have a price oracle that is not configured for the asset that tapd is trying to get a quote for

In this case the price oracle responds with

error {
  message: "unsupported subject asset"
}

However, when I try to create an invoice, tapd responds with

peer 0295541b89d8f41745177da175a1e7d3968fb7ceea4ca3b755f98e92ba3ef9a823 rejected the quote, code: 0, error message: unknown reject error

tapd should include the "unsupported subject asset" message that the price oracle gave to it.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions