mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 18:44:20 +01:00
refactor
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
import asyncio
|
||||
from functools import partial, wraps
|
||||
from typing import List
|
||||
|
||||
from cashu.core.base import Proof
|
||||
from cashu.core.settings import LIGHTNING_FEE_PERCENT, LIGHTNING_RESERVE_FEE_MIN
|
||||
|
||||
|
||||
def sum_proofs(proofs: List[Proof]):
|
||||
return sum([p.amount for p in proofs])
|
||||
|
||||
|
||||
def async_wrap(func):
|
||||
@wraps(func)
|
||||
async def run(*args, loop=None, executor=None, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user