core: code format

This commit is contained in:
Vlad Stan
2022-07-08 09:23:48 +03:00
parent 728209da7d
commit 80e1545920

View File

@@ -105,7 +105,9 @@ async def check_address_balance(charge_id: str) -> List[Charges]:
try:
async with httpx.AsyncClient() as client:
r = await client.get(
config.mempool_endpoint + "/api/address/" + charge.onchainaddress
config.mempool_endpoint
+ "/api/address/"
+ charge.onchainaddress
)
respAmount = r.json()["chain_stats"]["funded_txo_sum"]
if respAmount >= charge.balance: