uniswap_v2.swap

Documentation for eth_defi.uniswap_v2.swap module.

Uniswap v2 swap helper functions.

Functions

swap_with_slippage_protection(...[, ...])

Helper function to prepare a swap from quote token to base token (buy base token with quote token) with price estimation and slippage protection baked in.