We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc01a1 commit d6ccbe7Copy full SHA for d6ccbe7
1 file changed
app/src/main/java/to/bitkit/models/MSat.kt
@@ -19,8 +19,8 @@ value class MSat(val value: ULong) {
19
fun floor(): ULong = value / PER_SAT
20
}
21
22
-/** Syntactic sugar for [MSat.ceil]. */
+/** Round [msat] up to the nearest whole sat. Use for payment/display amounts. */
23
fun msatCeilOf(msat: ULong): ULong = MSat(msat).ceil()
24
25
-/** Syntactic sugar for [MSat.floor]. */
+/** Truncate sub-sat remainder from [msat]. Use for fees and upper bounds. */
26
fun msatFloorOf(msat: ULong): ULong = MSat(msat).floor()
0 commit comments