-
Notifications
You must be signed in to change notification settings - Fork 212
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
better min vol logic #2170
better min vol logic #2170
Conversation
take a look, default minimum volume is 0.0001, and it change to 0.1 or 0.00777 only after clicking on the custom checkbox Screen.Recording.2022-12-07.at.21.37.18.mov |
Thanks. It should also change when selecting an order from orderbook or setting price input (until selected price is known, it does not call https://developers.komodoplatform.com/basic-docs/atomicdex-api-legacy/min_trading_vol.html yet) I'll see if I can add an earlier |
Please test carefully and try with many different swaps with different pairs cc. @Canialon @SirSevenG |
I've pushed this into a separate issue as I wont be able to fix that today and the PR is otherwise ready to review/merge. |
Hmm
Generally, it works. You can't start trade with Volume < maker min_volume If you use exact trade volume == maker min_volume, where maker's min volume has more than 6 decimals, order will likely not match due to rounding: @smk762 this PR seems to fix initial issue/report, we can also fix my problem as separate issue. What do you think? |
Yeah, def needs to be fixed - will create issue for it and tackle at same time as #2180 |
@smk762 @SylEze I think we've fixed same CI error previously |
This one should fix it #2182 |
it does match, i did a lot of swaps with those orders |
We'll need to test this more in other PR for #2183 |
closes #2153
To test:
Try to place order for/with KMD vs Smartchain at lowest amount possible.
Check orders tab, one side will be 0.0001, and the other side larger than 0.0001 (as below)
Look for a pair orderbook where maker has set custom minimum, and confirm can not start swap if setting volume lower
Test other coin like DOGE or BTC, default minimum will be 0.1 or 0.00777 instead of 0.0001