fix maxQuoteQuantity in placeSpotOrder
This commit is contained in:
parent
ff37b21777
commit
9b0db13c10
|
@ -1178,13 +1178,10 @@ export class MangoClient {
|
|||
|
||||
const limitPrice = serum3MarketExternal.priceNumberToLots(price);
|
||||
const maxBaseQuantity = serum3MarketExternal.baseSizeNumberToLots(size);
|
||||
const maxQuoteQuantity = serum3MarketExternal.decoded.quoteLotSize
|
||||
.mul(
|
||||
new BN(
|
||||
1 + group.getSerum3FeeRates(orderType === Serum3OrderType.postOnly),
|
||||
),
|
||||
)
|
||||
.mul(
|
||||
const maxQuoteQuantity = new BN(
|
||||
serum3MarketExternal.decoded.quoteLotSize.toNumber() * 1 +
|
||||
group.getSerum3FeeRates(orderType === Serum3OrderType.postOnly),
|
||||
).mul(
|
||||
serum3MarketExternal
|
||||
.baseSizeNumberToLots(size)
|
||||
.mul(serum3MarketExternal.priceNumberToLots(price)),
|
||||
|
|
Loading…
Reference in New Issue