merge goldali with abshode_khanegi branch

This commit is contained in:
2026-06-04 12:18:53 +03:30
parent aea3cbbc6e
commit a9815fa717
28 changed files with 1359 additions and 379 deletions
@@ -42,7 +42,7 @@ class SingleOrderController extends Controller
return filter_var($value, FILTER_VALIDATE_BOOLEAN);
};
if ($toBool($config->Config('montzar_price'))) {
if ($config->usesMontzarPricing()) {
$montzar_closed = $toBool($config->Config('montzar_closed'));
$montzar_buy = !$toBool($config->Config('montzar_open_buy')) && (int) $data['direction'] === 1;
$montzar_sell = !$toBool($config->Config('montzar_open_sell')) && (int) $data['direction'] === 2;
@@ -507,7 +507,7 @@ class SingleOrderController extends Controller
private function sendProviderOrder(array &$data, $wallet_interface, int $direction)
{
if ($this->Config('montzar_price') == "true") {
if (app(\App\Services\ConfigService::class)->usesMontzarPricing()) {
try {
return app(MontzarService::class)->sendOrder($data);
} catch (UnprocessableEntityHttpException $e) {