Skip to content

Commit

Permalink
fix: include DEX contract swaps contract_create_txi
Browse files Browse the repository at this point in the history
  • Loading branch information
sborrazas committed Jan 29, 2025
1 parent 19cfbd0 commit 9a0bca8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/ae_mdw/db/contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,17 @@ defmodule AeMdw.Db.Contract do
)
|> State.put(
Model.DexContractTokenSwap,
Model.dex_contract_token_swap(index: {token1_create_txi_idx, txi, idx})
Model.dex_contract_token_swap(
index: {token1_create_txi_idx, txi, idx},
contract_call_create_txi: create_txi
)
)
|> State.put(
Model.DexContractTokenSwap,
Model.dex_contract_token_swap(index: {token2_create_txi_idx, txi, idx})
Model.dex_contract_token_swap(
index: {token2_create_txi_idx, txi, idx},
contract_call_create_txi: create_txi
)
)

:not_found ->
Expand Down

0 comments on commit 9a0bca8

Please sign in to comment.