example_uniswap_v2_usdc_swap

Function get_amount_out

Source
pub(crate) async fn get_amount_out(
    amount_in: U256,
    reserve_in: U256,
    reserve_out: U256,
    cache_db: &mut CacheDB<WrapDatabaseAsync<AlloyDB<Http<Client>, Ethereum, RootProvider<Http<Client>>>>>,
) -> Result<U256>