Browse Source
Tries to return the approxmost posible string of a Millisatoshi amount using various unit representations. The function will round to an effective number of digits. Default: 3. ``` >>> Millisatoshi("100000sat").to_approx_str() '0.001btc' >>> Millisatoshi("100msat").to_approx_str() '0.1sat' >>> Millisatoshi("10000000sat").to_approx_str() '0.1btc' ```htlc_accepted_hook
Michael Schmoock
6 years ago
committed by
Christian Decker
1 changed files with 32 additions and 0 deletions
Loading…
Reference in new issue