freemartianSlippage effect
    Updated 2022-06-15

    with steth_out as (
    select amount_out, block_timestamp::date as TIME
    from flipside_prod_db.ethereum.dex_swaps
    where token_address = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'
    and pool_address = '0xdc24316b9ae028f1497c275eb9192a3ea0f67022'
    and block_timestamp::date > CURRENT_DATE -90
    ),

    eth_in as (
    select amount_in, block_timestamp::date as TIME
    from flipside_prod_db.ethereum.dex_swaps
    where token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    and pool_address = '0xdc24316b9ae028f1497c275eb9192a3ea0f67022'
    and block_timestamp::date > CURRENT_DATE -90
    )

    select sum(s.amount_out) - sum(e.amount_in) as daily_difference, date_trunc('day', e.TIME) as calendar
    from eth_in e
    inner join steth_out s on e.TIME = s.TIME
    group by calendar
    Run a query to Download Data