analyse_trade_by_receipt
Documentation for eth_defi.uniswap_v3.analysis.analyse_trade_by_receipt function.
- analyse_trade_by_receipt(web3, uniswap, tx, tx_hash, tx_receipt, input_args=None)[source]
Analyse a Uniswpa v3 trade.
Figure out
The success of the trade
Slippage, etc.
- Parameters
tx_receipt (dict) – Transaction receipt
input_args (Optional[tuple]) –
The swap input arguments.
If not given automatically decode from tx. You need to pass this for Enzyme transactions, because transaction payload is too complex to decode.
web3 (web3.main.Web3) –
uniswap (eth_defi.uniswap_v3.deployment.UniswapV3Deployment) –
tx (dict) –
- Return type
eth_defi.trade.TradeSuccess | eth_defi.trade.TradeFail