@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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15030,7 +15030,7 @@ function PropertyBuy({
|
|
|
15030
15030
|
const statusColor = STATUS_COLOR2[ipoStatus] ?? "#D4AF37";
|
|
15031
15031
|
const displayStatusLabel = isPrivateClient && ipoStatus !== "LIVE" ? "Private Client Access" : statusLabel;
|
|
15032
15032
|
const displayStatusColor = isPrivateClient && ipoStatus !== "LIVE" ? "#D4AF37" : statusColor;
|
|
15033
|
-
const rawSpend = manualOrderAmount !== null ? manualOrderAmount : Math.round(sliderValue / 100 * availableBalance);
|
|
15033
|
+
const rawSpend = manualOrderAmount !== null ? manualOrderAmount : sliderValue === 100 ? Math.floor(availableBalance / (1 + feeRate)) : Math.round(sliderValue / 100 * availableBalance);
|
|
15034
15034
|
const tokenQuantity = Math.floor(rawSpend / tokenPrice);
|
|
15035
15035
|
const feeInUsd = tokenQuantity * tokenPrice * feeRate;
|
|
15036
15036
|
const orderTotal = tokenQuantity * tokenPrice + feeInUsd;
|