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

XMR autoconf should get amount from trade not offer #4560

Merged
merged 1 commit into from Sep 27, 2020
Merged

XMR autoconf should get amount from trade not offer #4560

merged 1 commit into from Sep 27, 2020

Conversation

ghost
Copy link

@ghost ghost commented Sep 24, 2020

  • Get the amount from the trade rather than the offer.
  • Log the expected amount when not matching the explorer result. It would have made debugging this issue much more straightforward.

Fixes #4557

Get the amount from the trade rather than the offer.

Log the expected amount when not matching the explorer result.
It would have made debugging this issue much more straightforward.

Fixes #4557
Copy link
Contributor

@chimp1984 chimp1984 left a comment

Choose a reason for hiding this comment

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

utACK

Could you reproduce the issue that it was really caused by that?

@@ -60,8 +60,7 @@
this.serviceAddress = serviceAddress;
this.autoConfirmSettings = autoConfirmSettings;

Coin tradeAmount = trade.getTradeAmount();
Volume volume = checkNotNull(trade.getOffer()).getVolumeByAmount(tradeAmount);
Volume volume = trade.getTradeVolume();
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch. I think the trade price is the reason for the issue.

@ghost
Copy link
Author

ghost commented Sep 25, 2020

Yes I reproduced the problem by forcing the taker's price to differ from maker's price same way as it was reported in the logs.

I did not catch this problem during testing because all were self trades / same machine and so there was no price discrepancy between the trading parties. Also I tended to use a fixed XMR rate which in hindsight was a bit silly as most traders use floating rates.

@sqrrm sqrrm merged commit 3174778 into bisq-network:master Sep 27, 2020
@ripcurlx ripcurlx added this to the v1.4.0 milestone Sep 30, 2020
@ghost ghost mentioned this pull request Oct 23, 2020
@ghost ghost deleted the fix_xmr_amount_check branch December 3, 2020 19:20
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.

Monero auto-confirm fails with AMOUNT_NOT_MATCHING or NO_MATCH_FOUND in certain cases
3 participants