File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use core::fmt;
10
10
11
11
/// An amount of Bitcoin
12
12
///
13
- /// Sadly, because lightning uses "milli-satoshis" we cannot directly use rust-bitcon 's `Amount`
13
+ /// Sadly, because lightning uses "milli-satoshis" we cannot directly use rust-bitcoin 's `Amount`
14
14
/// type.
15
15
///
16
16
/// In general, when displaying amounts to the user, you should use [`Self::sats_rounding_up`].
@@ -89,8 +89,8 @@ impl Amount {
89
89
#[ inline]
90
90
pub const fn saturating_add ( self , rhs : Amount ) -> Amount {
91
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 ) ,
92
+ Some ( amt) if amt <= MAX_MSATS => Amount ( amt) ,
93
+ _ => Amount ( MAX_MSATS ) ,
94
94
}
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments