We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CancelOrderByClientIdV2
NonZeroU64
u64
The instruction accepts an u64:
serum-dex/dex/src/instruction.rs
Line 434 in 0c23a51
serum-dex/dex/src/state.rs
Line 2127 in 0c23a51
which means that an order with client id of 0 can not be cancelled (raising an assertion error).
0
This is also an issue for the CancelOrdersByClientIds instruction, worst yet it silently filters away the 0 id order:
CancelOrdersByClientIds
Lines 2190 to 2194 in 0c23a51
Causing confusing errors like insufficient funds.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The instruction accepts an
u64
:serum-dex/dex/src/instruction.rs
Line 434 in 0c23a51
despite it being casted to a
NonZeroU64
internally:serum-dex/dex/src/state.rs
Line 2127 in 0c23a51
which means that an order with client id of
0
can not be cancelled (raising an assertion error).This is also an issue for the
CancelOrdersByClientIds
instruction, worst yet it silently filters away the0
id order:serum-dex/dex/src/state.rs
Lines 2190 to 2194 in 0c23a51
Causing confusing errors like insufficient funds.
The text was updated successfully, but these errors were encountered: