File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ pub async fn process_order(
244244
245245 log:: info!(
246246 target: "server" ,
247- "{} signer={} taker_subaccount={} slot={} side={:?} base={} price={} order_type={:?} reduce_only={} post_only={:?} delegate_signer={:?}" ,
247+ "{} signer={} taker_subaccount={} slot={} side={:?} base={} price={} order_type={:?} reduce_only={} post_only={:?} iso={:?} delegate_signer={:?}" ,
248248 context. log_prefix,
249249 signing_pubkey,
250250 taker_pubkey,
@@ -255,6 +255,7 @@ pub async fn process_order(
255255 order_params. order_type,
256256 order_params. reduce_only,
257257 order_params. post_only,
258+ isolated_position_deposit,
258259 delegate_signer,
259260 ) ;
260261
@@ -1706,6 +1707,17 @@ mod tests {
17061707 } ;
17071708 use solana_sdk:: native_token:: LAMPORTS_PER_SOL ;
17081709
1710+ fn is_isolated_deposit ( signed_msg : & SignedOrderType ) -> bool {
1711+ match signed_msg {
1712+ SignedOrderType :: Delegated { inner, .. } => inner
1713+ . isolated_position_deposit
1714+ . is_some_and ( |amount| amount > 0 ) ,
1715+ SignedOrderType :: Authority { inner, .. } => inner
1716+ . isolated_position_deposit
1717+ . is_some_and ( |amount| amount > 0 ) ,
1718+ }
1719+ }
1720+
17091721 fn create_test_order_params (
17101722 order_type : OrderType ,
17111723 market_type : MarketType ,
You can’t perform that action at this time.
0 commit comments