-
Notifications
You must be signed in to change notification settings - Fork 50
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
chore: Added tests #2815
Conversation
350915f
to
f1251d2
Compare
draft.orderData.selectedPoolCalculation.sides.sell | ||
} | ||
draft.orderData.amounts.buy = | ||
draft.orderData.selectedPoolCalculation.sides.buy |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
No description provided.