-- when (token_in = lower('{{token_address}}') and amount_in_usd is not null) or (token_out = lower('{{token_address}}') and amount_out_usd is not null) then row_num
-- when (token_in = lower('{{token_address}}') and token_out in ('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', '0xdac17f958d2ee523a2206206994597c13d831ec7')) or (token_out = lower('{{token_address}}') and token_in in ('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', '0xdac17f958d2ee523a2206206994597c13d831ec7')) then 100 + row_num