merge goldali with abshode_khanegi branch
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user