Skip to content

Commit b75822a

Browse files
committed
Log the prepare asset_id
1 parent 87d3885 commit b75822a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

lib/core/src/sdk.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,13 +1916,18 @@ impl LiquidSdk {
19161916
debug!("Preparing Chain Receive Swap with: payer_amount_sat {payer_amount_sat:?}, fees_sat {fees_sat}");
19171917
}
19181918
PaymentMethod::LiquidAddress => {
1919-
let payer_amount_sat = match req.amount {
1920-
Some(ReceiveAmount::Asset { payer_amount, .. }) => payer_amount,
1921-
Some(ReceiveAmount::Bitcoin { payer_amount_sat }) => Some(payer_amount_sat),
1922-
None => None,
1919+
let (asset_id, amount_sat) = match req.amount.clone() {
1920+
Some(ReceiveAmount::Asset {
1921+
payer_amount,
1922+
asset_id,
1923+
}) => (asset_id, payer_amount),
1924+
Some(ReceiveAmount::Bitcoin { payer_amount_sat }) => {
1925+
(self.config.lbtc_asset_id(), Some(payer_amount_sat))
1926+
}
1927+
None => (self.config.lbtc_asset_id(), None),
19231928
};
19241929
fees_sat = 0;
1925-
debug!("Preparing Liquid Receive with: amount_sat {payer_amount_sat:?}, fees_sat {fees_sat}");
1930+
debug!("Preparing Liquid Receive with: asset_id {asset_id}, amount_sat {amount_sat:?}, fees_sat {fees_sat}");
19261931
}
19271932
};
19281933

0 commit comments

Comments
 (0)