Skip to content

[Exchange] Address reuse when multiple buy orders #1511

Description

@ethicnology

Scenario

When a user splits multiple buy orders within the same batch, the wallet may reuse addresses, even though the user might expect each confirmed purchase to mark its address as used.

Reproduce

  1. The user is using the wallet app and is logged to the exchange
  2. The user wants to buy two times 100_000 sats
  3. The user proceeds to his first buying order: the wallet automatically picks up the next unused address to build the transaction, the order will be batched/broadcasted in XX minutes by the exchange
  4. The user proceed to his second buy order, the wallet automatically picks up the next unused address, which is the same as the first buy order because the first buy order despite being confirmed hasn't been batched yet.

Expected behavior

A user splitting his buy in multiple output expect the wallet to consider used any address that already has a buying order confirmed even if the transaction hasn't been broadcasted / confirmed yet

Context

  • BULL: 6.3.5

Platforms

  • Android
  • iOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions