seven 2 dienas atpakaļ
vecāks
revīzija
0f565900c0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/Services/WithdrawService.php

+ 1 - 1
app/Services/WithdrawService.php

@@ -346,7 +346,7 @@ class WithdrawService
         $withdraw->to_account = $real;
         $withdraw->address = $address;
         $withdraw->status = 0;
-        $withdraw->after_balance = $wallet->available_balance;
+        $withdraw->after_balance = bcdiv($wallet->available_balance,$rate,2);
         $withdraw->save();
         $bl->related_id = $withdraw->id;
         $bl->save();