Skip to content

Commit

Permalink
Added is_self_transfer method
Browse files Browse the repository at this point in the history
  • Loading branch information
eprbell committed Dec 20, 2024
1 parent aca7cf2 commit 53b75f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rp2/intra_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@ def is_taxable(self) -> bool:

def is_earning(self) -> bool:
return False

def is_self_transfer(self) -> bool:
return self.from_exchange == self.to_exchange and self.from_holder == self.to_holder

0 comments on commit 53b75f2

Please sign in to comment.