Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
brittcyr committed Nov 13, 2024
1 parent 6b54f8c commit 56aeefa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debug-ui/scripts/stats-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class ManifestStatsServer {

this.ws.onmessage = async (message) => {
const fill: FillLogResult = JSON.parse(message.data.toString());
const { market, baseAtoms, quoteAtoms, price, slot } = fill;
const { market, baseAtoms, quoteAtoms, priceAtoms, slot } = fill;

// Do not accept old spurious messages.
if (this.lastFillSlot > slot) {
Expand Down Expand Up @@ -144,13 +144,13 @@ export class ManifestStatsServer {
}
lastPrice.set(
{ market },
price *
priceAtoms *
10 **
(this.markets.get(market)!.baseDecimals() -
this.markets.get(market)!.quoteDecimals()),
);

this.lastPriceByMarket.set(market, price);
this.lastPriceByMarket.set(market, priceAtoms);
this.baseVolumeAtomsSinceLastCheckpoint.set(
market,
this.baseVolumeAtomsSinceLastCheckpoint.get(market)! +
Expand Down

0 comments on commit 56aeefa

Please sign in to comment.