Skip to content

Commit

Permalink
algo: Fixed Deflex swap detection (hodgerpodger#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperavocado authored Feb 28, 2023
1 parent 8176754 commit 8bc2a53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/staketaxcsv/algo/handle_deflex.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def _is_deflex_routed_swap(wallet_address, group):
if is_algo_transfer(transaction) and is_transaction_sender(wallet_address, transaction):
i += 1

if i == length:
return False

return is_app_call(group[i], APPLICATION_ID_DEFLEX_ORDER_ROUTER, DEFLEX_TRANSACTION_SWAP_FINALIZE)


Expand Down

0 comments on commit 8bc2a53

Please sign in to comment.