TradeFail

Documentation for eth_defi.uniswap_v2.analysis.TradeFail class.

class TradeFail[source]

Describe the result of a failed Uniswap swap.

The transaction reverted for a reason or another.

Attributes summary

revert_reason

Revert reason if we managed to extract one

Methods summary

__init__(gas_used, effective_gas_price[, ...])

get_effective_gas_price_gwei()

revert_reason: Optional[str] = None

Revert reason if we managed to extract one

__init__(gas_used, effective_gas_price, revert_reason=None)
Parameters
Return type

None