Skip to content

Commit

Permalink
Added new case for transfer from a CB user to another
Browse files Browse the repository at this point in the history
  • Loading branch information
eprbell committed Oct 2, 2023
1 parent 15e7daa commit addeb54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dali/plugin/input/rest/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,9 @@ def _process_transfer(
_TO in transaction
and transaction[_TO] is not None
and _RESOURCE in transaction[_TO]
and transaction[_TO][_RESOURCE] == _USER
and transaction[_TO][_RESOURCE] in {_USER, _EMAIL}
and transaction_network[_STATUS] == _OFF_BLOCKCHAIN
and _SUBTITLE in transaction[_DETAILS]
and _EMAIL in transaction[_TO]
):
# Outgoing gift to another Coinbase user
out_transaction_list.append(
Expand All @@ -581,7 +580,7 @@ def _process_transfer(
crypto_out_with_fee=str(-amount),
fiat_out_no_fee=str(-native_amount),
fiat_fee="0",
notes=f"To: {transaction[_TO][_EMAIL]}",
notes=f"{transaction[_DETAILS][_SUBTITLE]}",
)
)
elif _FROM in transaction and transaction[_DETAILS][_SUBTITLE].startswith("From Coinbase"):
Expand Down

0 comments on commit addeb54

Please sign in to comment.