Contract 060d10e53779b685f6b2525fc6b1fb7f491601775a6f17fab319ac15e1e9c509

← Back to Index 📥 Download WASM

Meta

rssdkver 21.1.1#648cbcb799858b9ba9f240c82c0babcf621050bc
rsver 1.79.0

Instances

  • CBO4VL3JZJIC7H55DWSJ6NMKFVVNKTYOZO5QWHVXIQSZFLD5DRCJGYR2

Interface

Initializes the contract and sets the Phoenix 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,
) -> 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,
) -> Result, AdapterError>
fn get_protocol_id(env: soroban_sdk::Env) -> Result
fn get_protocol_address(
    env: soroban_sdk::Env,
) -> Result

Imports

WebAssembly Text (WAT) ▶