MCPcopy Create free account
hub / github.com/ElementsProject/lightning / from_sat

Method from_sat

plugins/lsps-plugin/src/proto/lsps0.rs:81–83  ·  view source on GitHub ↗

Construct a new `Msat` struct from a `u64` sat value.

(sat: u64)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

MsatClass · 0.85

Tested by

no test coverage detected