Skip to content

Commit

Permalink
fix: rename swap to dex_swap
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Jul 30, 2024
1 parent 0faa098 commit d434e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bin/pindexer/src/dex/dex.sql
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ CREATE TABLE IF NOT EXISTS dex_lp_execution (
);

--- Represents instances where swap executions happened.
CREATE TABLE IF NOT EXISTS swap
CREATE TABLE IF NOT EXISTS dex_swap
(
height BIGINT PRIMARY KEY,
input Value,
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/pindexer/src/dex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ impl Event {
}
trace_end = Some(id);
}
sqlx::query(r#"INSERT INTO swap VALUES ($1, (CAST($2 AS Amount), $3),
sqlx::query(r#"INSERT INTO dex_swap VALUES ($1, (CAST($2 AS Amount), $3),
(CAST($4 AS AMOUNT), $5), $6, $7, $8, $9, CAST($10 AS AMOUNT), CAST($11 AS AMOUNT),
CAST($12 AS AMOUNT), CAST($13 AS AMOUNT), CAST($14 AS AMOUNT), CAST($15 AS AMOUNT),;"#)
.bind(i64::try_from(*height)?)
Expand Down

0 comments on commit d434e36

Please sign in to comment.