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

Fix bsq to fiat calculation #4909

Merged
merged 5 commits into from
Dec 8, 2020

Conversation

chimp1984
Copy link
Contributor

Fixes #4865

We used last trade price of BSQ for calculating the BSQ fee as fiat currency. This could distort the real amount in case the last trade had a price very different to average price.
We use now the 30 day average BSQ price.

@chimp1984
Copy link
Contributor Author

As there was a recent BSQ trade with quite a higher price than the 30 days average one can see the difference from the release version to that PR version in the screenshots below.

Screen Shot 2020-12-07 at 13 56 37

Screen Shot 2020-12-07 at 13 56 25

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ripcurlx ripcurlx merged commit 1ab4766 into bisq-network:master Dec 8, 2020
@chimp1984 chimp1984 deleted the fix-bsq-to-fiat-calculation branch December 8, 2020 16:28
@ripcurlx ripcurlx added this to the v1.5.2 milestone Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BSQ trading fee in fiat not calculated properly
2 participants