From 74b24eb6092d82fb019b9d8204fd9ec2d49e9166 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 3 Oct 2024 13:04:20 +0300 Subject: [PATCH] fix: cast balance to `int` --- lnbits/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/models.py b/lnbits/core/models.py index 5dd77403e..80129392a 100644 --- a/lnbits/core/models.py +++ b/lnbits/core/models.py @@ -49,7 +49,7 @@ class Wallet(BaseModel): @property def balance(self) -> int: - return self.balance_msat // 1000 + return int(self.balance_msat // 1000) @property def withdrawable_balance(self) -> int: