add support to record fees in crypto currency for transactions #28

Closed
opened 2021-05-11 06:45:54 +02:00 by Ghost · 1 comment
Ghost commented 2021-05-11 06:45:54 +02:00 (Migrated from codeberg.org)

eg. for moving assets to your personal wallet, there is just a fee in the crypto currency.
eg. for some market places, you pay the fees in crypto or in fiat currency.

see #24

eg. for moving assets to your personal wallet, there is just a fee in the crypto currency. eg. for some market places, you pay the fees in crypto or in fiat currency. see #24
Ghost commented 2021-05-11 06:53:15 +02:00 (Migrated from codeberg.org)

https://github.com/tpokorra/walletmonitor/blob/main/apps/transactions/models.py

we currently have these columns:

  • amount_before_fee (crypto)
  • amount_after_fee (crypto)
  • amount (fiat)

It would be good to change this to:

  • amount_crypto
  • amount_fiat
  • fee_crypto
  • fee_fiat

see data migration: https://docs.djangoproject.com/en/3.2/topics/migrations/#data-migrations

https://github.com/tpokorra/walletmonitor/blob/main/apps/transactions/models.py we currently have these columns: * amount_before_fee (crypto) * amount_after_fee (crypto) * amount (fiat) It would be good to change this to: * amount_crypto * amount_fiat * fee_crypto * fee_fiat see data migration: https://docs.djangoproject.com/en/3.2/topics/migrations/#data-migrations
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tpokorra/walletmonitor#28