Contract 55b7983a932207d4fe9a134b93fdeddfa59da3b05fe19d988874972eebeba38b

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.86.0

Instances

  • CBUL2OI3LN3VWKVXATPQPF2AP54P5W36WJZCLA7KZZZVO4GJSOLK4KEQ
  • CCZTA4IJQ3J674IYQOPWSDAFZ7HUJJUI3JRJ3PC23XG4N4OKN2JNWQYF

Interface

Initializes the contract and sets the Aqua multihop address.

Arguments

  • e - The contract environment.
  • protocol_id - The identifier for the protocol.
  • protocol_address - The address associated with the protocol.

Errors

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

Imports

WebAssembly Text (WAT) ▶