Skip to content

Optimise minSendAmount probing with response from OP server #1106

@sidvishnoi

Description

@sidvishnoi

When finding the minSendAmount in PaymentSession, we currently rely on exponential probing followed by a binary search, which is quite inefficient, but presently the only way to find this amount.

interledger/rafiki#3411 adds a minSendAmount detail in error responses which we want to use instead of us probing. #1103 updates OP SDK to include these details when available from server.

Once a newer Rafiki version is released, and there's some wallet (likely the Test Wallet) using that Rafiki version (so we can validate the results), update the PaymentSession.findMinSendAmount method to support this new feature, while maintaining backward compatibility.

Metadata

Metadata

Assignees

Labels

area: backgroundImprovements or additions to extension background scriptgood first issueGood for newcomers, including for Hacktoberfest.

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions