seven 2 өдөр өмнө
parent
commit
0f565900c0

+ 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();