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 exchange rate bugs #148

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Conversation

ukane-philemon
Copy link
Collaborator

Closes #57

  • Return early for dcr-ltc market as Binance does not support it yet.
  • Fix the bug that caused weird estimated rates.
  • Improve the estimated rates display so it's clear.
  • Fix comment formatting and typos.
Screenshot 2023-10-04 at 2 39 51 PM Screenshot 2023-10-04 at 3 15 22 PM Screenshot 2023-10-04 at 3 21 01 PM

Note: instantswap.ExchangeRateInfo.EstimatedAmount was previously unused but it gives the correct values for it's current use so I'm using it instead of instantswap.ExchangeRateInfo.ExchangeRate.

- Return early for dcr-ltc market as Binance does not support it yet.
- Fix the bug that caused weird estimated rates.
- Improve the estimated rates display.
- Fix comment formatting and typos.

Signed-off-by: Philemon Ukane <[email protected]>
@dreacot
Copy link
Member

dreacot commented Oct 4, 2023

binance rate still shows on the order scheduler modal

Screenshot from 2023-10-04 11-30-23

libwallet/ext/service.go Outdated Show resolved Hide resolved
libwallet/instantswap.go Outdated Show resolved Hide resolved
@ukane-philemon
Copy link
Collaborator Author

ukane-philemon commented Oct 4, 2023

binance rate still shows on the order scheduler modal

Nice catch. I was unable to sync LTC atm and could not test without syncing.

EDIT: Resolved in f9d5e3f.

Signed-off-by: Philemon Ukane <[email protected]>
Signed-off-by: Philemon Ukane <[email protected]>
Copy link
Member

@dreacot dreacot left a comment

Choose a reason for hiding this comment

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

LGTM!

@dreacot dreacot merged commit a40b85b into crypto-power:master Oct 5, 2023
1 check passed
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.

the binance rate seems off when creating an order
2 participants