This commit is contained in:
2026-07-02 01:26:26 +03:30
parent 24edbf3ff3
commit 17e50de53e
7 changed files with 21 additions and 21 deletions
+5 -5
View File
@@ -93,7 +93,7 @@ class ConfigService
}
/** اختلاف خرید نمایش (/api/price/last) — fee_single / buy_fee */
public function displayBuySpreadRial(): float
public function displayBuyPriceDiffRial(): float
{
$feeSingle = (float) $this->get('fee_single', 0);
$buyFee = (float) $this->get('buy_fee', $feeSingle);
@@ -102,7 +102,7 @@ class ConfigService
}
/** اختلاف فروش نمایش — fee_single / sell_fee */
public function displaySellSpreadRial(): float
public function displaySellPriceDiffRial(): float
{
$feeSingle = (float) $this->get('fee_single', 0);
$sellFee = (float) $this->get('sell_fee', $feeSingle);
@@ -111,7 +111,7 @@ class ConfigService
}
/** اختلاف ریالی سفارش — fee_single، بعد fee_cash (legacy)، بعد config/fee.php */
public function orderSpreadRial(): float
public function orderPriceDiffRial(): float
{
$feeSingle = $this->getString('fee_single', '');
if ($feeSingle !== '') {
@@ -161,8 +161,8 @@ class ConfigService
?string $priceSource = null,
array $montzarFlags = []
): array {
$diffBuy = (float) $this->displayBuySpreadRial();
$diffSell = (float) $this->displaySellSpreadRial();
$diffBuy = (float) $this->displayBuyPriceDiffRial();
$diffSell = (float) $this->displaySellPriceDiffRial();
$feeSingle = (float) $this->get('fee_single', 0);
$openBuy = true;