Refactor to_unit into amount module (#381)

* Refactor to_unit into amount module
This commit is contained in:
David Caseria
2024-10-01 08:36:37 -04:00
committed by GitHub
parent 187664439c
commit fc0cc6789c
9 changed files with 90 additions and 44 deletions

View File

@@ -9,10 +9,9 @@ use std::sync::Arc;
use anyhow::anyhow;
use async_trait::async_trait;
use axum::Router;
use cdk::amount::Amount;
use cdk::amount::{to_unit, Amount, MSAT_IN_SAT};
use cdk::cdk_lightning::{
self, to_unit, CreateInvoiceResponse, MintLightning, PayInvoiceResponse, PaymentQuoteResponse,
Settings, MSAT_IN_SAT,
self, CreateInvoiceResponse, MintLightning, PayInvoiceResponse, PaymentQuoteResponse, Settings,
};
use cdk::mint::FeeReserve;
use cdk::nuts::{