summaryrefslogtreecommitdiff
path: root/test_ledger_process.py
diff options
context:
space:
mode:
authoruvok2025-04-18 19:01:54 +0200
committeruvok2025-04-18 19:01:54 +0200
commit5bbd90ec4f25510bb7e07a0911b4cb0a5b2f1333 (patch)
tree62b080a7259e28d0f9b2d6f58f7e62a9c9b6cee5 /test_ledger_process.py
parentd90a4c73483b67d5f47305a3f4e2df8f9c1d9412 (diff)
Update test to reflect Kraken ledger format
Diffstat (limited to 'test_ledger_process.py')
-rw-r--r--test_ledger_process.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test_ledger_process.py b/test_ledger_process.py
index f33988c..3fe54dc 100644
--- a/test_ledger_process.py
+++ b/test_ledger_process.py
@@ -137,12 +137,12 @@ class TestLedgerProcess(unittest.TestCase):
refid="67890",
)
- # TODO: Check how Kraken handles deposits
+ # deposit: lists full amount first, then subtracts fee
deposit = LedgerAction(
type="deposit",
asset="BTC",
amount=Decimal("0.098"),
- fee=Decimal("0.000"),
+ fee=Decimal("0.001"),
timestamp="2025-04-17 14:00:00",
refid="55555",
)
@@ -151,7 +151,7 @@ class TestLedgerProcess(unittest.TestCase):
self.assertEqual(len(self.lp.fifo_queues["BTC"]), 1)
self.assertEqual(
- self.lp.fifo_queues["BTC"].get_remaining_amount(), Decimal("0.098")
+ self.lp.fifo_queues["BTC"].get_remaining_amount(), Decimal("0.097")
)
self.assertEqual(len(self.lp.external_wallet["BTC"]), 0)
self.assertEqual(