diff --git a/public/assets/locales/fa/translation.json b/public/assets/locales/fa/translation.json index 0adb2e0c..034d07df 100644 --- a/public/assets/locales/fa/translation.json +++ b/public/assets/locales/fa/translation.json @@ -337,8 +337,6 @@ "cancel": "لغو", "seconds": "ثانیه", "submitPaymentReq": "ثبت درخواست واریز", - "noInventory": "موجودی کافی نیست !", - "allowableWithdraw": "حداقل مقدار مجاز برداشت رعایت نشده است.", "fillAddress": "وارد کردن آدرس الزامیست.", "important": "مهم", "DepositTETHContentBefore": "فقط ETH تستی شبکه Ropsten مورد قبول قرار می گیرد! برای دریافت رایگان به ", @@ -354,7 +352,11 @@ "network": "شبکه", "selectNetwork": " شبکه را انتخاب کنید", "gettingAddress": "درحال گرفتن آدرس...", - "errorGettingAddress": "خطا در گرفتن آدرس" + "errorGettingAddress": "خطا در گرفتن آدرس", + + "noInventory": "موجودی کافی نیست !", + "noInventorywithdrawFee": "با احتساب کارمزد، موجودی کافی نیست !", + "allowableWithdraw": "حداقل مقدار مجاز برداشت رعایت نشده است." }, "CallbackPage": { "ok": "واریز وجه با موفقیت انجام شد.", @@ -380,6 +382,7 @@ "inventory": "موجودی بعد از تراکنش", "freeWallet": "موجودی قابل برداشت", "minWithdraw": "حداقل مقدار برداشت", + "maxWithdrawal": "حداکثر مقدار برداشت", "minDeposit": "حداقل مقدار واریز", "maxWithdraw": "سقف برداشت روزانه شما", "maxMonthWithdraw": "سقف برداشت ماهانه شما", diff --git a/src/components/NumberInput/NumberInput.js b/src/components/NumberInput/NumberInput.js index 54de1716..ee5904b9 100644 --- a/src/components/NumberInput/NumberInput.js +++ b/src/components/NumberInput/NumberInput.js @@ -62,7 +62,7 @@ const NumberInput = (props) => { customClass="hint-icon" />
{t("MarketInfo.lastPrice")}{" "} {t("currency." + selected?.buy)}:
- {showBestPrice()}{" "}{t("currency." + selected?.sell)} +{t("MarketInfo.lastPrice")}{" "} {getCurrencyNameOrAlias(currencies[selected?.buy], language)}:
+ {showBestPrice()}{" "}{ getCurrencyNameOrAlias(currencies[selected?.sell], language)}{t("orders.availableAmount")}:{" "}
{new BN(userAccount?.wallets[selected?.sell]?.free || 0).toFormat()}{" "}{t("currency." + selected?.sell)} + onClick={fillBuyByWallet}>{new BN(userAccount?.wallets[selected?.sell]?.free || 0).decimalPlaces(currencies[selected?.sell]?.precision ?? 0).toFormat()}{" "}{getCurrencyNameOrAlias(currencies[selected?.sell], language)}{t("myOrders.tradedAmount")} :{" "} - {executedQty.decimalPlaces(activePair.baseAssetPrecision).toFormat()} + {executedQty.decimalPlaces(currencies[activePair.baseAsset].precision).toFormat()}
{t("myOrders.tradedPrice")} :{" "} - {executedQty.multipliedBy(pricePerUnit).decimalPlaces(activePair.baseAssetPrecision).toFormat()} + {executedQty.multipliedBy(pricePerUnit).decimalPlaces(currencies[activePair.baseAsset].precision).toFormat()}
{t("myOrders.orderId")} : {tr.orderId}
- {t("commission")} : {new BN(tr.commission).toFormat()} {t("currency." + tr.commissionAsset.toUpperCase())} + {t("commission")} : {new BN(tr.commission).decimalPlaces(currencies[tr.commissionAsset.toUpperCase()].precision).toFormat()} + {getCurrencyNameOrAlias(currencies[tr.commissionAsset.toUpperCase()], language)}
{ @@ -283,7 +293,7 @@ const BuyOrder = () => { }}> {t("orders.bestOffer")}:{" "} - {new BN(bestBuyPrice).toFormat()}{" "}{t("currency." + activePair.quoteAsset)} + {new BN(bestBuyPrice).toFormat()}{" "}{getCurrencyNameOrAlias(currencies[activePair.quoteAsset], language)}
@@ -313,9 +323,9 @@ const BuyOrder = () => {{t("orders.tradeFee")}:{" "} {order.tradeFee.toFormat()}{" "} - {t("currency." + activePair.baseAsset)} + {getCurrencyNameOrAlias(currencies[activePair.baseAsset], language)}
{t("orders.getAmount")}:{" "} - {order.reqAmount.minus(order.tradeFee).decimalPlaces(activePair.baseAssetPrecision).toFormat()}{" "} - {t("currency." + activePair.baseAsset)} + {order.reqAmount.minus(order.tradeFee).decimalPlaces(currencies[activePair.baseAsset].precision).toFormat()}{" "} + {getCurrencyNameOrAlias(currencies[activePair.baseAsset], language)}