File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1916,13 +1916,18 @@ impl LiquidSdk {
1916
1916
debug ! ( "Preparing Chain Receive Swap with: payer_amount_sat {payer_amount_sat:?}, fees_sat {fees_sat}" ) ;
1917
1917
}
1918
1918
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 ) ,
1923
1928
} ;
1924
1929
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}" ) ;
1926
1931
}
1927
1932
} ;
1928
1933
You can’t perform that action at this time.
0 commit comments