From 0a610f677c6cf06450aab5c033057b5c1452be51 Mon Sep 17 00:00:00 2001 From: green-jay Date: Mon, 30 Dec 2024 12:03:18 +0100 Subject: [PATCH] Remove global farm withdrawal from export --- queries/dexscreener/v1/events.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/queries/dexscreener/v1/events.sql b/queries/dexscreener/v1/events.sql index 2312844..e1f6769 100644 --- a/queries/dexscreener/v1/events.sql +++ b/queries/dexscreener/v1/events.sql @@ -32,6 +32,8 @@ remove_data AS ( FROM event e1 JOIN event e2 ON e1.args ->> 'to' = e2.args ->> 'who' AND e1.block_id = e2.block_id WHERE e1.name = 'Currencies.Transferred' AND e2.name = 'XYK.LiquidityRemoved' AND NOT (e1.args ->> 'amount' = '1000000000000' AND e1.args ->> 'currencyId' = '0') + -- handle farm withdraw as an exception (decoded pool name 'modlxykLMpID') + AND e1.args ->> 'from' <> '0x6d6f646c78796b4c4d7049440000000000000000000000000000000000000000' ), rn1 AS ( SELECT *