zarbox added 5

This commit is contained in:
2026-06-04 15:30:34 +03:30
parent 0574ade170
commit 9b0d360dcf
3 changed files with 47 additions and 7 deletions
+18
View File
@@ -56,6 +56,24 @@ class ConfigService
return (int) ($value === false || $value === null || $value === '' ? $default : $value);
}
/** اختلاف خرید نمایش (/api/price/last) — fee_single / buy_fee */
public function displayBuySpreadRial(): float
{
$feeSingle = (float) $this->get('fee_single', 0);
$buyFee = (float) $this->get('buy_fee', $feeSingle);
return $buyFee > 0 ? $buyFee : $feeSingle;
}
/** اختلاف فروش نمایش — fee_single / sell_fee */
public function displaySellSpreadRial(): float
{
$feeSingle = (float) $this->get('fee_single', 0);
$sellFee = (float) $this->get('sell_fee', $feeSingle);
return $sellFee > 0 ? $sellFee : $feeSingle;
}
/**
* تنها منبع فعال قیمت — فقط یکی از: montzar | etehadie | taban_gohar | main_product
*