Generating multiple count orders using <ScaledOrders /> table should limit Quantity, Range start and Range end of placed orders as to not exceed the provided inputs.
Current Behavior
Given some larger Order count, contracts quantity and last order's price are wrongly calculated.
Results:
Quantity - 9,994 (instead of 10,000)
Range end USD - 8,888.5 (instead of 8,888)
Possible Solution
Check Quantity and Range end USD at the end of generating orders
Steps to Reproduce
Inputs:
Quantity - 10000
Order count - 10
Range start USD - 7777
Range end USD - 8888
Distribution - Positive
Possible Implementation
Add the difference between the expected amounts to the first/last orders quantity for Quantity.
Expected Behavior
Generating multiple count orders using
<ScaledOrders />
table should limit Quantity, Range start and Range end of placed orders as to not exceed the provided inputs.Current Behavior
Given some larger
Order count
, contracts quantity and last order's price are wrongly calculated.Results:
Possible Solution
Check Quantity and Range end USD at the end of generating orders
Steps to Reproduce
Possible Implementation
Quantity
.Range end USD