fix: revert withdraw to using bech32 lnurl field (#65)

This commit is contained in:
dni ⚡ 2025-10-06 18:44:49 +02:00 committed by GitHub
commit 720aa694c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 3 deletions

View file

@ -37,6 +37,16 @@ class WithdrawLink(BaseModel):
webhook_body: str = Query(None)
custom_url: str = Query(None)
created_at: datetime
lnurl: str | None = Field(
default=None,
no_database=True,
deprecated=True,
description=(
"Deprecated: Instead of using this bech32 encoded string, dynamically "
"generate your own static link (lud17/bech32) on the client side. "
"Example: lnurlw://${window.location.hostname}/lnurlw/${id}"
),
)
@property
def is_spent(self) -> bool: