Skip to content

Commit

Permalink
only add transfers if settlement contract does the trading
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Dec 15, 2023
1 parent e5877b7 commit 27841a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queries/dune_v2/period_slippage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ batch_meta as (
from batch_meta bm
join maker_ethereum.SavingsDai_evt_Withdraw w
on w.evt_tx_hash= bm.tx_hash
where sender = 0x9008d19f58aabd9ed0d60971565aa8510560ab41
union all
-- deposit events result in additional AMM_OUT transfer
select
Expand All @@ -151,6 +152,7 @@ batch_meta as (
from batch_meta bm
join maker_ethereum.SavingsDai_evt_Deposit w
on w.evt_tx_hash= bm.tx_hash
where owner = 0x9008d19f58aabd9ed0d60971565aa8510560ab41
)
,pre_batch_transfers as (
select * from (
Expand Down

0 comments on commit 27841a2

Please sign in to comment.