execute_trades_simple#

execute_trades_simple(state, pair_universe, trades, web3, hot_wallet, uniswap, max_slippage=0.01, stop_on_execution_failure=True)[source]#

Execute trades on web3 instance.

A testing shortcut

  • Create BlockchainTransaction instances

  • Execute them on Web3 test connection (EthereumTester / Ganache)

  • Works with single Uniswap test deployment

Parameters
Return type

Tuple[List[TradeExecution], List[TradeExecution]]