mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

Provide `Amount` instead of `OutputValue` to `FillOrder` command

Open azarovh opened this issue 1 year ago • 0 comments

Providing OutputValue (i.e. currency + amount) to the AccountCommand::FillOrder is redundant. Order can be filled with only particular currency defined on creation by OrderData. As a result check for currency mismatch can be removed from orders-accounting, making it one rule less in the code.

At the moment this change can be done without a fork because orders are not activated.

azarovh avatar Sep 29 '24 14:09 azarovh