Skip to content

Commit

Permalink
Pricing admin (#411)
Browse files Browse the repository at this point in the history
Co-authored-by: Kelvin Lau <[email protected]>
  • Loading branch information
kelvinlau20100 and Kelvin Lau authored Jul 19, 2024
1 parent 89b76da commit 503f8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export class Market {
public async cancelAllOrdersHalted() {
Exchange.getSubExchange(this.asset).assertHalted();

await this.updateOrderbook();
this.updateOrderbook();
let orders = this.getMarketOrders();
let ixs = await getCancelAllIxs(this.asset, orders, false);
let txs = splitIxsIntoTx(ixs, constants.MAX_CANCELS_PER_TX);
Expand Down
2 changes: 1 addition & 1 deletion src/subexchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ export class SubExchange {
let txs = instructions.settlePositionsHaltedTxs(
this._asset,
marginAccounts,
Exchange.provider.wallet.publicKey
Exchange.state.pricingAdmin
);

await Promise.all(
Expand Down

0 comments on commit 503f8dc

Please sign in to comment.