Skip to content

Commit

Permalink
Merge pull request #45 from galacticcouncil/dexscreener-fixes-7
Browse files Browse the repository at this point in the history
Remove global farm withdrawal from export
  • Loading branch information
green-jay authored Dec 30, 2024
2 parents 637bc56 + 0a610f6 commit b59df5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queries/dexscreener/v1/events.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit b59df5e

Please sign in to comment.