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

chore: Added tests #2815

Merged
merged 2 commits into from
Oct 22, 2023
Merged

chore: Added tests #2815

merged 2 commits into from
Oct 22, 2023

Conversation

stackchain
Copy link
Member

No description provided.

@github-actions github-actions bot added the chore label Oct 20, 2023
draft.orderData.selectedPoolCalculation.sides.sell
}
draft.orderData.amounts.buy =
draft.orderData.selectedPoolCalculation.sides.buy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sides are already on the right side, and sell is locked (doesn't get updated), only buy needs update

if (state.orderData.type === 'market') break

draft.orderData.limitPrice = action.limitPrice
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

branching earlier, price shouldn't be updated if type is not limit

@@ -606,7 +600,7 @@ const orderReducer = (
draft.orderData.calculations = makeOrderCalculations({
orderType: state.orderData.type,
amounts: state.orderData.amounts,
limitPrice: state.orderData.limitPrice,
limitPrice: undefined,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if limit is passed it won't get updated, the if (shouldn't happen) the FFEE changes while creating an order, it must be reseted to market

@stackchain stackchain marked this pull request as ready for review October 22, 2023 14:57
@stackchain stackchain added this to the 5.0.0 milestone Oct 22, 2023
@stackchain stackchain self-assigned this Oct 22, 2023
@stackchain stackchain changed the title chore: added tests chore: Added tests Oct 22, 2023
@stackchain stackchain merged commit 1b029cd into develop Oct 22, 2023
2 checks passed
@stackchain stackchain deleted the chore/test-coverage branch February 6, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant