change to limit order on book price click
This commit is contained in:
parent
239cb1990b
commit
7afcfb897b
|
@ -854,7 +854,8 @@ const OrderbookRow = ({
|
||||||
const set = mangoStore.getState().set
|
const set = mangoStore.getState().set
|
||||||
set((state) => {
|
set((state) => {
|
||||||
state.tradeForm.price = formattedPrice.toFixed()
|
state.tradeForm.price = formattedPrice.toFixed()
|
||||||
if (state.tradeForm.baseSize && state.tradeForm.tradeType === 'Limit') {
|
state.tradeForm.tradeType = 'Limit'
|
||||||
|
if (state.tradeForm.baseSize) {
|
||||||
const quoteSize = floorToDecimal(
|
const quoteSize = floorToDecimal(
|
||||||
formattedPrice.mul(new Decimal(state.tradeForm.baseSize)),
|
formattedPrice.mul(new Decimal(state.tradeForm.baseSize)),
|
||||||
getDecimalCount(tickSize)
|
getDecimalCount(tickSize)
|
||||||
|
|
Loading…
Reference in New Issue