public function hasSufficientFunds($amount, $vendor, $transfer = false)
    {
        $balance = round($this->hipay->getBalance($vendor), static::SCALE);

        if ($balance < round($amount, static::SCALE)) {
            if ($transfer) {
                throw new WrongWalletBalance('technical', 'transfer', $amount, $balance);
            }

            throw new WrongWalletBalance($vendor->getHipayId(), 'withdraw', $amount, $balance);
        }
    }