decode_swap

Documentation for eth_defi.uniswap_v3.events.decode_swap function.

decode_swap(web3, log)[source]

Process swap event. The event signature is:

event Swap(
    address indexed sender,
    address indexed recipient,
    int256 amount0,
    int256 amount1,
    uint160 sqrtPriceX96,
    uint128 liquidity,
    int24 tick
);
Parameters
Return type

dict