Skip to content

Commit d6ccbe7

Browse files
ovitrifclaude
andcommitted
docs: improve msatCeilOf/msatFloorOf kdoc
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ebc01a1 commit d6ccbe7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/src/main/java/to/bitkit/models

app/src/main/java/to/bitkit/models/MSat.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ value class MSat(val value: ULong) {
1919
fun floor(): ULong = value / PER_SAT
2020
}
2121

22-
/** Syntactic sugar for [MSat.ceil]. */
22+
/** Round [msat] up to the nearest whole sat. Use for payment/display amounts. */
2323
fun msatCeilOf(msat: ULong): ULong = MSat(msat).ceil()
2424

25-
/** Syntactic sugar for [MSat.floor]. */
25+
/** Truncate sub-sat remainder from [msat]. Use for fees and upper bounds. */
2626
fun msatFloorOf(msat: ULong): ULong = MSat(msat).floor()

0 commit comments

Comments
 (0)