From 7c7fc36784603480df1975f4a77ec583b74efa5c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 20 Jan 2025 16:06:48 +1100 Subject: [PATCH] Improve docs on Denomination Document what each denomination means. --- units/src/amount/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index 2c7f59f2b..8e3a92515 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -68,17 +68,17 @@ pub use self::{ #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] #[non_exhaustive] pub enum Denomination { - /// BTC + /// BTC (1 BTC = 100,000,000 satoshi). Bitcoin, - /// cBTC + /// cBTC (1 cBTC = 1,000,000 satoshi). CentiBitcoin, - /// mBTC + /// mBTC (1 mBTC = 100,000 satoshi). MilliBitcoin, - /// uBTC + /// uBTC (1 uBTC = 100 satoshi). MicroBitcoin, - /// bits + /// bits (bits = uBTC). Bit, - /// satoshi + /// satoshi (1 BTC = 100,000,000 satoshi). Satoshi, }