loom_defi_pools::protocols::protocol

Trait Protocol

Source
pub trait Protocol {
    // Required method
    fn get_pool_address_vec_for_tokens(
        token0: Address,
        token1: Address,
    ) -> Vec<Address>;
}

Required Methods§

Source

fn get_pool_address_vec_for_tokens( token0: Address, token1: Address, ) -> Vec<Address>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§