Skip to content

Commit

Permalink
UPDATE book.py for new binance opertion types and remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzio committed Apr 27, 2024
1 parent 7cc65ff commit e86b94f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def _read_binance(self, file_path: Path, version: int = 1) -> None:
"Cashback Voucher": "Airdrop",
"Rewards Distribution": "Airdrop",
"Simple Earn Flexible Airdrop": "Airdrop",
"Airdrop Assets": "Airdrop",
"Launchpool Earnings Withdrawal": "Airdrop",
#
"Savings Interest": "CoinLendInterest",
"Savings purchase": "CoinLend",
Expand Down Expand Up @@ -242,7 +244,10 @@ def _read_binance(self, file_path: Path, version: int = 1) -> None:
assert change

# Check for problems.
if remark and remark not in ("Withdraw fee is included",):
if remark and remark not in (
"Withdraw fee is included",
"Binance Earn",
) and not remark.endswith(" to BNB"):
log.warning(
"I may have missed a remark in %s:%i: `%s`.",
file_path,
Expand Down

0 comments on commit e86b94f

Please sign in to comment.