Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Amount instead of OutputValue to FillOrder command #1819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azarovh
Copy link
Member

@azarovh azarovh commented Sep 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants