chore: remove unused full withdraw (#3544)

This commit is contained in:
dni ⚡
2025-11-21 08:38:09 +01:00
committed by GitHub
parent faac56c14c
commit 9f4ed53888
2 changed files with 0 additions and 31 deletions
-10
View File
@@ -4,12 +4,10 @@ from dataclasses import dataclass
from datetime import datetime, timezone
from enum import Enum
from lnurl import encode as lnurl_encode
from pydantic import BaseModel, Field
from lnbits.core.models.lnurl import StoredPayLinks
from lnbits.db import FilterModel
from lnbits.helpers import url_for
from lnbits.settings import settings
@@ -196,14 +194,6 @@ class Wallet(BaseModel):
def withdrawable_balance(self) -> int:
return self.balance_msat - settings.fee_reserve(self.balance_msat)
@property
def lnurlwithdraw_full(self) -> str:
url = url_for("/withdraw", external=True, usr=self.user, wal=self.id)
try:
return lnurl_encode(url)
except Exception:
return ""
@property
def is_lightning_wallet(self) -> bool:
return self.wallet_type == WalletType.LIGHTNING.value