We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d071ce2 commit 6cec735Copy full SHA for 6cec735
src/amount.rs
@@ -89,8 +89,8 @@ impl Amount {
89
#[inline]
90
pub const fn saturating_add(self, rhs: Amount) -> Amount {
91
match self.0.checked_add(rhs.0) {
92
- Some(amt) if amt <= 21_000_000_0000_0000_000 => Amount(amt),
93
- _ => Amount(21_000_000_0000_0000_000),
+ Some(amt) if amt <= MAX_MSATS => Amount(amt),
+ _ => Amount(MAX_MSATS),
94
}
95
96
0 commit comments