Execute one Soroswap swap along path on behalf of user.
Flow:
amount_in of token_in from user into this contractamount_out_min on the outputuserReturns the amount of token_out delivered.
fn swap_soroswap(
env: soroban_sdk::Env,
user: soroban_sdk::Address,
soroswap_router: soroban_sdk::Address,
token_in: soroban_sdk::Address,
token_out: soroban_sdk::Address,
amount_in: i128,
amount_out_min: i128,
path: soroban_sdk::Vec,
deadline: u64,
) -> i128