-
Notifications
You must be signed in to change notification settings - Fork 20
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
Invalid parameters were provided: Computed payout is greater than total collateral #2131
Comments
Maybe reproducible with execution_price: 62323
|
lol, look at the coordinator reserve
|
It seems to come from an overflow caused by this calculation 10101/mobile/lib/features/trade/submit_order_change_notifier.dart Lines 64 to 65 in bc1bcd8
will result in a negative number. When past into 10101/mobile/native/src/api.rs Lines 343 to 347 in 0d8c36c
we get a nice overflow because the function expects a u64 but in dart we have an int |
Reproducible in release mode.
|
A user run into this issue, with a stuck pending order now as it seems the offer did not get rejected.
maybe relevant logs around the error
The text was updated successfully, but these errors were encountered: