decode_swap#

decode_swap(log)[source]#

Process swap event.

This function does manually optimised high speed decoding of the event.

The event signature is:

event Swap(
  address indexed sender,
  uint amount0In,
  uint amount1In,
  uint amount0Out,
  uint amount1Out,
  address indexed to
);
Parameters:

log (LogResult) –

Return type:

dict