From 95e74f0e61ca2904c116f39d223c3801d899c87c Mon Sep 17 00:00:00 2001 From: Simon Depelchin Date: Thu, 5 Apr 2018 13:57:17 +0200 Subject: [PATCH] Fixing withdraw transaction --- src/HasWallet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HasWallet.php b/src/HasWallet.php index 5ff8655..f51668c 100644 --- a/src/HasWallet.php +++ b/src/HasWallet.php @@ -84,7 +84,7 @@ public function withdraw($amount, $type = 'withdraw', $meta = [], $shouldAccept $accepted = $shouldAccept ? $this->canWithdraw($amount) : true; if ($accepted) { - $this->wallet->balance += $amount; + $this->wallet->balance -= $amount; $this->wallet->save(); }