eprbell / dali-rp2

DaLI (Data Loader Interface) is a data loader and input generator for RP2 (https://pypi.org/project/rp2), the privacy-focused, free, open-source cryptocurrency tax calculator: DaLI removes the need to manually prepare RP2 input files. Just like RP2, DaLI is also free, open-source and it prioritizes user privacy.
https://pypi.org/project/dali-rp2/
Apache License 2.0
64 stars 42 forks source link

Transaction Type - Refund ? #96

Open topcoderasdf opened 1 year ago

topcoderasdf commented 1 year ago

There are a few exchanges that refunds crypto/fees etc.

So I was wondering it would make sense to create another transaction type as I am not sure how to classify refunds with the current set up. Closest I can't think of is income, but it doesn't seem right to classify refund as income.

Keyword.IN.value: {
        Keyword.AIRDROP.value,
        Keyword.BUY.value,
        Keyword.DONATE.value,
        Keyword.GIFT.value,
        Keyword.HARDFORK.value,
        Keyword.INCOME.value,
        Keyword.INTEREST.value,
        Keyword.MINING.value,
        Keyword.STAKING.value,
        Keyword.WAGES.value,
 }
eprbell commented 1 year ago

That's a good question... I agree that income doesn't seem to capture this correctly. Probably a new REFUND transaction type would be cleaner.