@@ -230,6 +230,7 @@ async fn handle_request_loan_impl<
230230 spot_sell_cloid, spot_sell_cloid, hedge_open_cloid, hedge_open_cloid
231231 ) ;
232232
233+ /*
233234 // Build and submit spot sell action
234235 let spot_sell_action = build_spot_sell_order(
235236 validation_result.spot_asset_id,
@@ -416,8 +417,12 @@ async fn handle_request_loan_impl<
416417 .print_account_state(smart_wallet_address_str, "After Action 2 - USD Transfer to Perp")
417418 .await;
418419
420+ */
421+
419422 // Action 3: Open hedge position
420- current_nonce += 1 ;
423+ // current_nonce += 1;
424+ let current_nonce = skeleton_user_op. nonce ;
425+ let usdc_for_perp: f64 = 7.0 ;
421426
422427 // Refresh perp market prices to get latest prices for order construction
423428 info ! ( "Refreshing perp market prices before Action 3..." ) ;
@@ -523,13 +528,14 @@ async fn handle_request_loan_impl<
523528 . print_account_state ( smart_wallet_address_str, "After Action 3 - Hedge Open" )
524529 . await ;
525530
526- let usdc_received_str = format ! ( "{:.2}" , usdc_to_lend) ;
531+ // let usdc_received_str = format!("{:.2}", usdc_to_lend);
532+ let usdc_received_str = "1.0" . to_string ( ) ;
527533
528534 Ok ( RequestLoanTestResponse {
529535 spot_sell_cloid : spot_sell_cloid. to_string ( ) ,
530536 hedge_open_cloid : hedge_open_cloid. to_string ( ) ,
531537 usdc_received : usdc_received_str,
532- spot_sell_tx_hash,
538+ spot_sell_tx_hash : None ,
533539 hedge_open_tx_hash,
534540 } )
535541}
0 commit comments