Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pylightning to_btc_str precision
The old codes if % 1000 statement logic was simply inverted and produced the opposite output of the intention behin it. Before Fix: - Millisatoshi('42sat').to_btc_str() => 0.00000042000btc - Millisatoshi('42001msat').to_btc_str() => 0.00000042btc After Fix: - Millisatoshi('42sat').to_btc_str() => 0.00000042btc - Millisatoshi('42001msat').to_btc_str() => 0.00000042001btc
- Loading branch information