@agg-build/ui 4.9.1 → 4.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1139,6 +1139,9 @@ var isPredictionMarketPrice = (value) => {
1139
1139
  var getPlaceOrderAverageExecutionPrice = (quoteData) => {
1140
1140
  var _a;
1141
1141
  if (!quoteData || quoteData.totalFilled <= 0) return null;
1142
+ const chFill = quoteData.fills.length === 1 ? quoteData.fills[0] : void 0;
1143
+ if ((chFill == null ? void 0 : chFill.venue) === "prophetx" && chFill.limitPriceMicroUsdc != null)
1144
+ return Number(chFill.limitPriceMicroUsdc) / 1e6;
1142
1145
  if (isFiniteNonNegativePrice((_a = quoteData.slippage) == null ? void 0 : _a.vwap)) return quoteData.slippage.vwap;
1143
1146
  const averageExecutionPrice = quoteData.rawExecCost / quoteData.totalFilled;
1144
1147
  return isFiniteNonNegativePrice(averageExecutionPrice) ? averageExecutionPrice : null;
@@ -1362,14 +1365,16 @@ var mapQuoteDataToRoutingRows = (quoteData, tradeSide = "buy") => {
1362
1365
  if (!(quoteData == null ? void 0 : quoteData.fills.length)) return [];
1363
1366
  return quoteData.fills.map((fill) => {
1364
1367
  const allocationValueLabel = getTradingValueLabel(__spreadValues({
1365
- amount: fill.venueQty * fill.avgPrice
1368
+ amount: tradeSide === "sell" && fill.outAmount != null ? Number(fill.outAmount) / 1e6 : tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice
1366
1369
  }, tradeSide === "sell" ? { minimumFractionDigits: 2, maximumFractionDigits: 2 } : {}));
1367
1370
  const allocationSharesLabel = `${formatFlooredShareAmount(fill.venueQty, 2)} shares`;
1368
1371
  const requiresSharedKyc = venueRequiresSharedKyc({ venue: fill.venue });
1369
1372
  return __spreadProps(__spreadValues({
1370
1373
  venue: fill.venue,
1371
1374
  label: tradeSide === "sell" ? allocationSharesLabel : allocationValueLabel,
1372
- priceLabel: getTradingRoutePriceLabel(fill.avgPrice)
1375
+ priceLabel: getTradingRoutePriceLabel(
1376
+ fill.limitPriceMicroUsdc != null ? Number(fill.limitPriceMicroUsdc) / 1e6 : fill.avgPrice
1377
+ )
1373
1378
  }, requiresSharedKyc ? { requiresSharedKyc: true } : {}), {
1374
1379
  resultLabel: tradeSide === "sell" ? allocationValueLabel : getTradingValueLabel({
1375
1380
  amount: fill.venueQty,
@@ -2794,8 +2799,8 @@ var resolveOrderPresentation = ({
2794
2799
  const quotedShares = parseRawUsd(order.quotedSharesRaw);
2795
2800
  const actualShares = parseRawUsd(order.actualSharesRaw);
2796
2801
  const filledAmount = parseRawUsd(order.filledAmountRaw);
2797
- const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
2798
- const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
2802
+ const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.inAmount != null ? Number(fallbackFill.inAmount) / 1e6 : fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
2803
+ const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : (fallbackFill == null ? void 0 : fallbackFill.inAmount) != null ? fallbackAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
2799
2804
  return {
2800
2805
  venue,
2801
2806
  venueLabel,
@@ -2980,7 +2985,7 @@ var deriveExecutionOrderGroups = ({
2980
2985
  (event) => event.event === "partial_fill"
2981
2986
  );
2982
2987
  const hasVenueExecutionProgress = venueRawSteps.some(isRawStepStarted);
2983
- const quotedAmount = fill.venueQty * fill.avgPrice;
2988
+ const quotedAmount = tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice;
2984
2989
  const actualFill = resolveActualFillPresentation({
2985
2990
  fallbackAmount: quotedAmount,
2986
2991
  fallbackPrice: fill.avgPrice,
@@ -5742,7 +5747,7 @@ var PlaceOrder = ({
5742
5747
  return fills.length > 0 && fills.every((f) => geoBlockedVenuesFromWarnings.has(f.venue));
5743
5748
  }, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
5744
5749
  const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable);
5745
- const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && isPlaceOrderAveragePriceWorse({
5750
+ const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && !(activeQuoteData == null ? void 0 : activeQuoteData.fills.some((fill) => fill.venue === "prophetx")) && isPlaceOrderAveragePriceWorse({
5746
5751
  averageExecutionPrice: selectedRouteCard == null ? void 0 : selectedRouteCard.executionPrice,
5747
5752
  displayedMarketPrice: selectedOutcomeDisplayPrice,
5748
5753
  tradeSide: internalTab
@@ -21,7 +21,7 @@ import {
21
21
  formatChainIdLabel,
22
22
  useClaimWinnings,
23
23
  useResolvedMarketClaim
24
- } from "./chunk-GKYBQEBC.mjs";
24
+ } from "./chunk-K6F2ZYNM.mjs";
25
25
  import {
26
26
  getDisplayOutcomePrice,
27
27
  resolveHeaderOutcomeItems,
package/dist/index.js CHANGED
@@ -21459,6 +21459,9 @@ var isPredictionMarketPrice = (value) => {
21459
21459
  var getPlaceOrderAverageExecutionPrice = (quoteData) => {
21460
21460
  var _a;
21461
21461
  if (!quoteData || quoteData.totalFilled <= 0) return null;
21462
+ const chFill = quoteData.fills.length === 1 ? quoteData.fills[0] : void 0;
21463
+ if ((chFill == null ? void 0 : chFill.venue) === "prophetx" && chFill.limitPriceMicroUsdc != null)
21464
+ return Number(chFill.limitPriceMicroUsdc) / 1e6;
21462
21465
  if (isFiniteNonNegativePrice((_a = quoteData.slippage) == null ? void 0 : _a.vwap)) return quoteData.slippage.vwap;
21463
21466
  const averageExecutionPrice = quoteData.rawExecCost / quoteData.totalFilled;
21464
21467
  return isFiniteNonNegativePrice(averageExecutionPrice) ? averageExecutionPrice : null;
@@ -21682,14 +21685,16 @@ var mapQuoteDataToRoutingRows = (quoteData, tradeSide = "buy") => {
21682
21685
  if (!(quoteData == null ? void 0 : quoteData.fills.length)) return [];
21683
21686
  return quoteData.fills.map((fill) => {
21684
21687
  const allocationValueLabel = getTradingValueLabel(__spreadValues({
21685
- amount: fill.venueQty * fill.avgPrice
21688
+ amount: tradeSide === "sell" && fill.outAmount != null ? Number(fill.outAmount) / 1e6 : tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice
21686
21689
  }, tradeSide === "sell" ? { minimumFractionDigits: 2, maximumFractionDigits: 2 } : {}));
21687
21690
  const allocationSharesLabel = `${formatFlooredShareAmount(fill.venueQty, 2)} shares`;
21688
21691
  const requiresSharedKyc = venueRequiresSharedKyc({ venue: fill.venue });
21689
21692
  return __spreadProps(__spreadValues({
21690
21693
  venue: fill.venue,
21691
21694
  label: tradeSide === "sell" ? allocationSharesLabel : allocationValueLabel,
21692
- priceLabel: getTradingRoutePriceLabel(fill.avgPrice)
21695
+ priceLabel: getTradingRoutePriceLabel(
21696
+ fill.limitPriceMicroUsdc != null ? Number(fill.limitPriceMicroUsdc) / 1e6 : fill.avgPrice
21697
+ )
21693
21698
  }, requiresSharedKyc ? { requiresSharedKyc: true } : {}), {
21694
21699
  resultLabel: tradeSide === "sell" ? allocationValueLabel : getTradingValueLabel({
21695
21700
  amount: fill.venueQty,
@@ -23114,8 +23119,8 @@ var resolveOrderPresentation = ({
23114
23119
  const quotedShares = parseRawUsd(order.quotedSharesRaw);
23115
23120
  const actualShares = parseRawUsd(order.actualSharesRaw);
23116
23121
  const filledAmount = parseRawUsd(order.filledAmountRaw);
23117
- const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
23118
- const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
23122
+ const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.inAmount != null ? Number(fallbackFill.inAmount) / 1e6 : fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
23123
+ const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : (fallbackFill == null ? void 0 : fallbackFill.inAmount) != null ? fallbackAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
23119
23124
  return {
23120
23125
  venue,
23121
23126
  venueLabel,
@@ -23300,7 +23305,7 @@ var deriveExecutionOrderGroups = ({
23300
23305
  (event) => event.event === "partial_fill"
23301
23306
  );
23302
23307
  const hasVenueExecutionProgress = venueRawSteps.some(isRawStepStarted);
23303
- const quotedAmount = fill.venueQty * fill.avgPrice;
23308
+ const quotedAmount = tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice;
23304
23309
  const actualFill = resolveActualFillPresentation({
23305
23310
  fallbackAmount: quotedAmount,
23306
23311
  fallbackPrice: fill.avgPrice,
@@ -26062,7 +26067,7 @@ var PlaceOrder = ({
26062
26067
  return fills.length > 0 && fills.every((f) => geoBlockedVenuesFromWarnings.has(f.venue));
26063
26068
  }, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
26064
26069
  const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable);
26065
- const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && isPlaceOrderAveragePriceWorse({
26070
+ const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && !(activeQuoteData == null ? void 0 : activeQuoteData.fills.some((fill) => fill.venue === "prophetx")) && isPlaceOrderAveragePriceWorse({
26066
26071
  averageExecutionPrice: selectedRouteCard == null ? void 0 : selectedRouteCard.executionPrice,
26067
26072
  displayedMarketPrice: selectedOutcomeDisplayPrice,
26068
26073
  tradeSide: internalTab
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  formatRecurringCountdown,
15
15
  formatShareAmount,
16
16
  useHomePageModals
17
- } from "./chunk-XQLLZTEW.mjs";
17
+ } from "./chunk-MVAOWNG3.mjs";
18
18
  import {
19
19
  EventList,
20
20
  EventListItem,
@@ -67,7 +67,7 @@ import {
67
67
  useResolvedMarketClaim,
68
68
  useSharedKycFlow,
69
69
  venueRequiresSharedKyc
70
- } from "./chunk-GKYBQEBC.mjs";
70
+ } from "./chunk-K6F2ZYNM.mjs";
71
71
  import {
72
72
  SETTLEMENT_SECTION_ID,
73
73
  Settlement,
package/dist/pages.js CHANGED
@@ -19134,6 +19134,9 @@ var isPredictionMarketPrice = (value) => {
19134
19134
  var getPlaceOrderAverageExecutionPrice = (quoteData) => {
19135
19135
  var _a;
19136
19136
  if (!quoteData || quoteData.totalFilled <= 0) return null;
19137
+ const chFill = quoteData.fills.length === 1 ? quoteData.fills[0] : void 0;
19138
+ if ((chFill == null ? void 0 : chFill.venue) === "prophetx" && chFill.limitPriceMicroUsdc != null)
19139
+ return Number(chFill.limitPriceMicroUsdc) / 1e6;
19137
19140
  if (isFiniteNonNegativePrice((_a = quoteData.slippage) == null ? void 0 : _a.vwap)) return quoteData.slippage.vwap;
19138
19141
  const averageExecutionPrice = quoteData.rawExecCost / quoteData.totalFilled;
19139
19142
  return isFiniteNonNegativePrice(averageExecutionPrice) ? averageExecutionPrice : null;
@@ -19357,14 +19360,16 @@ var mapQuoteDataToRoutingRows = (quoteData, tradeSide = "buy") => {
19357
19360
  if (!(quoteData == null ? void 0 : quoteData.fills.length)) return [];
19358
19361
  return quoteData.fills.map((fill) => {
19359
19362
  const allocationValueLabel = getTradingValueLabel(__spreadValues({
19360
- amount: fill.venueQty * fill.avgPrice
19363
+ amount: tradeSide === "sell" && fill.outAmount != null ? Number(fill.outAmount) / 1e6 : tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice
19361
19364
  }, tradeSide === "sell" ? { minimumFractionDigits: 2, maximumFractionDigits: 2 } : {}));
19362
19365
  const allocationSharesLabel = `${formatFlooredShareAmount(fill.venueQty, 2)} shares`;
19363
19366
  const requiresSharedKyc = venueRequiresSharedKyc({ venue: fill.venue });
19364
19367
  return __spreadProps(__spreadValues({
19365
19368
  venue: fill.venue,
19366
19369
  label: tradeSide === "sell" ? allocationSharesLabel : allocationValueLabel,
19367
- priceLabel: getTradingRoutePriceLabel(fill.avgPrice)
19370
+ priceLabel: getTradingRoutePriceLabel(
19371
+ fill.limitPriceMicroUsdc != null ? Number(fill.limitPriceMicroUsdc) / 1e6 : fill.avgPrice
19372
+ )
19368
19373
  }, requiresSharedKyc ? { requiresSharedKyc: true } : {}), {
19369
19374
  resultLabel: tradeSide === "sell" ? allocationValueLabel : getTradingValueLabel({
19370
19375
  amount: fill.venueQty,
@@ -20789,8 +20794,8 @@ var resolveOrderPresentation = ({
20789
20794
  const quotedShares = parseRawUsd(order.quotedSharesRaw);
20790
20795
  const actualShares = parseRawUsd(order.actualSharesRaw);
20791
20796
  const filledAmount = parseRawUsd(order.filledAmountRaw);
20792
- const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
20793
- const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
20797
+ const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.inAmount != null ? Number(fallbackFill.inAmount) / 1e6 : fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
20798
+ const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : (fallbackFill == null ? void 0 : fallbackFill.inAmount) != null ? fallbackAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
20794
20799
  return {
20795
20800
  venue,
20796
20801
  venueLabel,
@@ -20975,7 +20980,7 @@ var deriveExecutionOrderGroups = ({
20975
20980
  (event) => event.event === "partial_fill"
20976
20981
  );
20977
20982
  const hasVenueExecutionProgress = venueRawSteps.some(isRawStepStarted);
20978
- const quotedAmount = fill.venueQty * fill.avgPrice;
20983
+ const quotedAmount = tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice;
20979
20984
  const actualFill = resolveActualFillPresentation({
20980
20985
  fallbackAmount: quotedAmount,
20981
20986
  fallbackPrice: fill.avgPrice,
@@ -23737,7 +23742,7 @@ var PlaceOrder = ({
23737
23742
  return fills.length > 0 && fills.every((f) => geoBlockedVenuesFromWarnings.has(f.venue));
23738
23743
  }, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
23739
23744
  const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable);
23740
- const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && isPlaceOrderAveragePriceWorse({
23745
+ const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && !(activeQuoteData == null ? void 0 : activeQuoteData.fills.some((fill) => fill.venue === "prophetx")) && isPlaceOrderAveragePriceWorse({
23741
23746
  averageExecutionPrice: selectedRouteCard == null ? void 0 : selectedRouteCard.executionPrice,
23742
23747
  displayedMarketPrice: selectedOutcomeDisplayPrice,
23743
23748
  tradeSide: internalTab
package/dist/pages.mjs CHANGED
@@ -11,14 +11,14 @@ import {
11
11
  formatRecurringCountdown,
12
12
  formatShareAmount,
13
13
  useHomePageModals
14
- } from "./chunk-XQLLZTEW.mjs";
14
+ } from "./chunk-MVAOWNG3.mjs";
15
15
  import "./chunk-GVIS3YXU.mjs";
16
16
  import {
17
17
  DEPOSIT_MODAL_OPEN_EVENT,
18
18
  WITHDRAW_MODAL_OPEN_EVENT,
19
19
  requestAggDepositModalOpen,
20
20
  requestAggWithdrawModalOpen
21
- } from "./chunk-GKYBQEBC.mjs";
21
+ } from "./chunk-K6F2ZYNM.mjs";
22
22
  import "./chunk-TNNLRRHC.mjs";
23
23
  import "./chunk-H7L4HDXS.mjs";
24
24
  import "./chunk-NYL6A6AD.mjs";
package/dist/trading.js CHANGED
@@ -8979,6 +8979,9 @@ var isPredictionMarketPrice = (value) => {
8979
8979
  var getPlaceOrderAverageExecutionPrice = (quoteData) => {
8980
8980
  var _a;
8981
8981
  if (!quoteData || quoteData.totalFilled <= 0) return null;
8982
+ const chFill = quoteData.fills.length === 1 ? quoteData.fills[0] : void 0;
8983
+ if ((chFill == null ? void 0 : chFill.venue) === "prophetx" && chFill.limitPriceMicroUsdc != null)
8984
+ return Number(chFill.limitPriceMicroUsdc) / 1e6;
8982
8985
  if (isFiniteNonNegativePrice((_a = quoteData.slippage) == null ? void 0 : _a.vwap)) return quoteData.slippage.vwap;
8983
8986
  const averageExecutionPrice = quoteData.rawExecCost / quoteData.totalFilled;
8984
8987
  return isFiniteNonNegativePrice(averageExecutionPrice) ? averageExecutionPrice : null;
@@ -9202,14 +9205,16 @@ var mapQuoteDataToRoutingRows = (quoteData, tradeSide = "buy") => {
9202
9205
  if (!(quoteData == null ? void 0 : quoteData.fills.length)) return [];
9203
9206
  return quoteData.fills.map((fill) => {
9204
9207
  const allocationValueLabel = getTradingValueLabel(__spreadValues({
9205
- amount: fill.venueQty * fill.avgPrice
9208
+ amount: tradeSide === "sell" && fill.outAmount != null ? Number(fill.outAmount) / 1e6 : tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice
9206
9209
  }, tradeSide === "sell" ? { minimumFractionDigits: 2, maximumFractionDigits: 2 } : {}));
9207
9210
  const allocationSharesLabel = `${formatFlooredShareAmount(fill.venueQty, 2)} shares`;
9208
9211
  const requiresSharedKyc = venueRequiresSharedKyc({ venue: fill.venue });
9209
9212
  return __spreadProps(__spreadValues({
9210
9213
  venue: fill.venue,
9211
9214
  label: tradeSide === "sell" ? allocationSharesLabel : allocationValueLabel,
9212
- priceLabel: getTradingRoutePriceLabel(fill.avgPrice)
9215
+ priceLabel: getTradingRoutePriceLabel(
9216
+ fill.limitPriceMicroUsdc != null ? Number(fill.limitPriceMicroUsdc) / 1e6 : fill.avgPrice
9217
+ )
9213
9218
  }, requiresSharedKyc ? { requiresSharedKyc: true } : {}), {
9214
9219
  resultLabel: tradeSide === "sell" ? allocationValueLabel : getTradingValueLabel({
9215
9220
  amount: fill.venueQty,
@@ -10634,8 +10639,8 @@ var resolveOrderPresentation = ({
10634
10639
  const quotedShares = parseRawUsd(order.quotedSharesRaw);
10635
10640
  const actualShares = parseRawUsd(order.actualSharesRaw);
10636
10641
  const filledAmount = parseRawUsd(order.filledAmountRaw);
10637
- const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
10638
- const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
10642
+ const fallbackAmount = fallbackFill ? tradeSide === "buy" ? fallbackFill.inAmount != null ? Number(fallbackFill.inAmount) / 1e6 : fallbackFill.venueQty * fallbackFill.avgPrice : fallbackFill.venueQty : 0;
10643
+ const amount = tradeSide === "buy" ? filledAmount != null ? filledAmount : (fallbackFill == null ? void 0 : fallbackFill.inAmount) != null ? fallbackAmount : quotedShares != null && quotedPrice > 0 ? quotedShares * quotedPrice : fallbackAmount : (_b = actualShares != null ? actualShares : quotedShares) != null ? _b : fallbackAmount;
10639
10644
  return {
10640
10645
  venue,
10641
10646
  venueLabel,
@@ -10820,7 +10825,7 @@ var deriveExecutionOrderGroups = ({
10820
10825
  (event) => event.event === "partial_fill"
10821
10826
  );
10822
10827
  const hasVenueExecutionProgress = venueRawSteps.some(isRawStepStarted);
10823
- const quotedAmount = fill.venueQty * fill.avgPrice;
10828
+ const quotedAmount = tradeSide === "buy" && fill.inAmount != null ? Number(fill.inAmount) / 1e6 : fill.venueQty * fill.avgPrice;
10824
10829
  const actualFill = resolveActualFillPresentation({
10825
10830
  fallbackAmount: quotedAmount,
10826
10831
  fallbackPrice: fill.avgPrice,
@@ -13582,7 +13587,7 @@ var PlaceOrder = ({
13582
13587
  return fills.length > 0 && fills.every((f) => geoBlockedVenuesFromWarnings.has(f.venue));
13583
13588
  }, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
13584
13589
  const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked || isLimitOrder && limitRouteCards.length > 0 && limitRouteCards.every((card) => card.isUnavailable);
13585
- const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && isPlaceOrderAveragePriceWorse({
13590
+ const shouldShowLowLiquidityWarning = !isQuoteInputEditing && !isQuoteLoading && (activeQuoteData == null ? void 0 : activeQuoteData.venueMarketOutcomeId) === scopedSelectedOutcomeId && !(activeQuoteData == null ? void 0 : activeQuoteData.fills.some((fill) => fill.venue === "prophetx")) && isPlaceOrderAveragePriceWorse({
13586
13591
  averageExecutionPrice: selectedRouteCard == null ? void 0 : selectedRouteCard.executionPrice,
13587
13592
  displayedMarketPrice: selectedOutcomeDisplayPrice,
13588
13593
  tradeSide: internalTab
package/dist/trading.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  useClaimWinnings,
15
15
  useResolvedMarketClaim,
16
16
  venueRequiresSharedKyc
17
- } from "./chunk-GKYBQEBC.mjs";
17
+ } from "./chunk-K6F2ZYNM.mjs";
18
18
  import {
19
19
  SETTLEMENT_SECTION_ID,
20
20
  Settlement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -101,7 +101,7 @@
101
101
  "react": "^18.0.0 || ^19.0.0",
102
102
  "react-dom": "^18.0.0 || ^19.0.0",
103
103
  "@agg-build/hooks": "^4.9.0",
104
- "@agg-build/sdk": "^4.9.0"
104
+ "@agg-build/sdk": "^4.9.2"
105
105
  },
106
106
  "dependencies": {
107
107
  "@number-flow/react": "^0.6.0",