Initializes the contract and sets the Aqua multihop address.
e - The contract environment.protocol_id - The identifier for the protocol.protocol_address - The address associated with the protocol.Returns an error if the contract is already initialized (AdapterError::AlreadyInitialized).
fn initialize(
env: soroban_sdk::Env,
protocol_id: soroban_sdk::String,
protocol_address: soroban_sdk::Address,
) -> Result<(), AdapterError>
fn swap_exact_tokens_for_tokens(
env: soroban_sdk::Env,
amount_in: i128,
amount_out_min: i128,
path: soroban_sdk::Vec,
to: soroban_sdk::Address,
_deadline: u64,
bytes: Option>>,
) -> Result, AdapterError>
fn swap_tokens_for_exact_tokens(
env: soroban_sdk::Env,
amount_out: i128,
amount_in_max: i128,
path: soroban_sdk::Vec,
to: soroban_sdk::Address,
_deadline: u64,
bytes: Option>>,
) -> Result, AdapterError>
fn get_protocol_id(env: soroban_sdk::Env) -> Result
fn get_protocol_address(
env: soroban_sdk::Env,
) -> Result