Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use historic BTC rate for expense items; allow BTC as currency #226

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

raucao
Copy link
Member

@raucao raucao commented Dec 18, 2024

Fetches historic rates when adding expense items where the date is not the current day (still using current rate otherwise). The API for this is just JSON objects posted to a public category in our [email protected] user's remoteStorage account (implementation for that following separately).

Also allows to add expense items with BTC as currency, which forgoes the currency conversions.

Both for transparency and accurate implementation, there is now also an additional sats amount stored with each line item in the expense list for every expense, no matter if it's EUR, USD, or BTC.

closes #225

Edit: I just realized that for the amountSats to be included in the IPFS docs, it needs to be added to the kredits JS library first. Added an issue for it.

@raucao raucao marked this pull request as ready for review December 18, 2024 10:21
@raucao
Copy link
Member Author

raucao commented Dec 18, 2024

I just used this PR to submit the latest reimbursement, which spans a few months. The historic rates in storage go back to August 1, 2024 as of now (but can be extended if necessary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow BTC as currency for expense line items
1 participant