Construct a new `Msat` struct from a `u64` sat value.
(sat: u64)
| 79 | |
| 80 | /// Construct a new `Msat` struct from a `u64` sat value. |
| 81 | pub fn from_sat(sat: u64) -> Self { |
| 82 | Msat(sat * MSAT_PER_SAT) |
| 83 | } |
| 84 | |
| 85 | /// Returns the sat amount of the field. Is a floored integer division e.g |
| 86 | /// 100678 becomes 100. |