@loafmarkets/ui 0.1.275 → 0.1.276

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.
package/dist/index.js CHANGED
@@ -15056,7 +15056,7 @@ function PropertyBuy({
15056
15056
  const statusColor = STATUS_COLOR2[ipoStatus] ?? "#D4AF37";
15057
15057
  const displayStatusLabel = isPrivateClient && ipoStatus !== "LIVE" ? "Private Client Access" : statusLabel;
15058
15058
  const displayStatusColor = isPrivateClient && ipoStatus !== "LIVE" ? "#D4AF37" : statusColor;
15059
- const rawSpend = manualOrderAmount !== null ? manualOrderAmount : Math.round(sliderValue / 100 * availableBalance);
15059
+ const rawSpend = manualOrderAmount !== null ? manualOrderAmount : sliderValue === 100 ? Math.floor(availableBalance / (1 + feeRate)) : Math.round(sliderValue / 100 * availableBalance);
15060
15060
  const tokenQuantity = Math.floor(rawSpend / tokenPrice);
15061
15061
  const feeInUsd = tokenQuantity * tokenPrice * feeRate;
15062
15062
  const orderTotal = tokenQuantity * tokenPrice + feeInUsd;