File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ pub enum CantDoReason {
5151 InvalidDisputeStatus ,
5252 /// Invalid action
5353 InvalidAction ,
54+ /// Pending order exists
55+ PendingOrderExists ,
5456}
5557
5658#[ derive( Debug , PartialEq , Eq ) ]
Original file line number Diff line number Diff line change @@ -457,9 +457,9 @@ impl SmallOrder {
457457 /// Check if the order has a zero amount and a premium or fiat amount
458458 pub fn check_zero_amount_with_premium ( & self ) -> Result < ( ) , CantDoReason > {
459459 let premium = ( self . premium != 0 ) . then_some ( self . premium ) ;
460- let fiat_amount = ( self . fiat_amount != 0 ) . then_some ( self . fiat_amount ) ;
460+ let sats_amount = ( self . amount != 0 ) . then_some ( self . amount ) ;
461461
462- if premium. is_some ( ) && fiat_amount . is_some ( ) {
462+ if premium. is_some ( ) && sats_amount . is_some ( ) {
463463 return Err ( CantDoReason :: InvalidParameters ) ;
464464 }
465465 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments