chrisguida / smaug

`smaug` watches your bitcoin treasury with a meticulous eye
MIT License
13 stars 3 forks source link

Add 'sats_to_msats' function to assign correct 'amount_msat' values #27

Closed fmhoeger closed 10 months ago

fmhoeger commented 10 months ago

Tested by calling l1-cli smaug add. balance_msat now shows the correct value in msats:

{
    "account": "smaug:5ysl7j8h9s47r8h0",
     "balances": [
        {
           "balance_msat": 85942131000,
           "coin_type": "bcrt"
        }
     ]
}

where previously it displayed the amount in sats.