fix some bug

This commit is contained in:
2026-07-01 20:59:24 +03:30
parent e3a883d224
commit a69316e0de
10 changed files with 226 additions and 14 deletions
+9
View File
@@ -139,6 +139,15 @@ class ConfigService
return (float) config('fee.service_charge_percentage', 0);
}
/**
* روشن: کارمزد از مقدار طلا (فروش = واریز ریالی گرد دقیق، خرید = دریافت کامل طلا).
* خاموش (پیش‌فرض): کارمزد از ریال در فروش و از طلا در خرید — رفتار قبلی.
*/
public function feeDeductFromGold(): bool
{
return $this->getBool('fee_deduct_from_gold', false);
}
/**
* sell / buy / price_last — یک منبع حقیقت برای lastPrice و buildFromDatabase.
*