resolve_trades#

API documentation for tradeexecutor.ethereum.uniswap_v2.uniswap_v2_execution_v0.resolve_trades Python function.

resolve_trades(web3, ts, state, tx_map, receipts, stop_on_execution_failure=True)[source]#

Resolve trade outcome.

Read on-chain Uniswap swap data from the transaction receipt and record how it went.

Mutates the trade objects in-place.

Parameters: