Skip to content

Commit

Permalink
adjust swap index to relate to each top level jupiter instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
desmond-hui committed Jun 20, 2024
1 parent 1cfaa4e commit 2dba7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ SELECT
b.tx_id,
b.index,
b.inner_index,
row_number() OVER (PARTITION BY b.tx_id, b.index ORDER BY b.inner_index)-1 AS swap_index,
row_number() OVER (PARTITION BY b.tx_id, b.index, s.inner_index ORDER BY b.inner_index)-1 AS swap_index, /* we want the swap index as it relates to the top level swap instruction */
b.succeeded,
b.program_id AS swap_program_id,
'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' AS aggregator_program_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ models:
tests:
- not_null: *recent_date_filter
- name: SWAP_INDEX
description: "{{ doc('swaps_swap_index') }}"
description: "{{ doc('swaps_swap_index') }} as it relates to the top level Jupiter V6 swap instruction"
tests:
- not_null: *recent_date_filter
- name: SUCCEEDED
Expand Down

0 comments on commit 2dba7f4

Please sign in to comment.