loom_defi_abi::uniswap2::router::IUniswapV2Router

Function new

Source
pub const fn new<T: Transport + Clone, P: Provider<T, N>, N: Network>(
    address: Address,
    provider: P,
) -> IUniswapV2RouterInstance<T, P, N>
Expand description

Creates a new wrapper around an on-chain IUniswapV2Router contract instance.

See the wrapper’s documentation for more details.