Ken hace 1 semana
padre
commit
b73e90891c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/WithdrawService.php

+ 1 - 1
app/Services/WithdrawService.php

@@ -397,7 +397,7 @@ class WithdrawService
             'address' => $address,
             'exchange_rate' => $rate,
             'status' => 0,
-            'after_balance' => $wallet->available_balance
+            'after_balance' => bcdiv($wallet->available_balance, $rate, 2)
         ]);