Merge branch 'main' into dev
This commit is contained in:
commit
2a906af95c
|
@ -6,7 +6,10 @@ Update this for each mainnet deployment.
|
|||
|
||||
## mainnet
|
||||
|
||||
Dec 16, 2022 at 16:40 Central European Standard Time
|
||||
|
||||
Oct 8, 2022 at 14:38:31 Central European Summer Time
|
||||
https://explorer.solana.com/tx/3m8EDohkgwJZyiwpGXztBWARWQVxyhnSNDVuH467D7FPS2wxJerr79HhdhDEed5hpConHgGsKHvxtW1HJP6GixX9
|
||||
|
||||
Oct 8, 2022 at 14:38:31 Central European Summer Time
|
||||
https://explorer.solana.com/tx/3m8EDohkgwJZyiwpGXztBWARWQVxyhnSNDVuH467D7FPS2wxJerr79HhdhDEed5hpConHgGsKHvxtW1HJP6GixX9
|
||||
|
|
|
@ -1178,17 +1178,15 @@ 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(
|
||||
serum3MarketExternal
|
||||
.baseSizeNumberToLots(size)
|
||||
.mul(serum3MarketExternal.priceNumberToLots(price)),
|
||||
);
|
||||
const maxQuoteQuantity = new BN(
|
||||
serum3MarketExternal.decoded.quoteLotSize.toNumber() *
|
||||
(1 + group.getSerum3FeeRates(false)),
|
||||
).mul(
|
||||
serum3MarketExternal
|
||||
.baseSizeNumberToLots(size)
|
||||
.mul(serum3MarketExternal.priceNumberToLots(price)),
|
||||
);
|
||||
|
||||
const payerTokenIndex = ((): TokenIndex => {
|
||||
if (side == Serum3Side.bid) {
|
||||
return serum3Market.quoteTokenIndex;
|
||||
|
|
Loading…
Reference in New Issue