1
0

swaps: code style clean-up, add type hints, force kwargs

no intended functional changes
This commit is contained in:
SomberNight
2023-11-22 17:50:29 +00:00
parent 9d5d582752
commit 9f1b8613d0
8 changed files with 120 additions and 66 deletions

View File

@@ -813,6 +813,7 @@ class SimpleConfig(Logger):
@classmethod
def estimate_fee_for_feerate(cls, fee_per_kb: Union[int, float, Decimal],
size: Union[int, float, Decimal]) -> int:
# note: 'size' is in vbytes
size = Decimal(size)
fee_per_kb = Decimal(fee_per_kb)
fee_per_byte = fee_per_kb / 1000