* send-take implemented
* send take
* remove comments, return err
* Replace 2 more checks with is_send_take flag
* attempted cargo fix
* Variable cleanup and code modification to handle fee updates in matching.rs
* Remove unused variable and add assert
* revert Cargo.lock
* Anchor version
* revert anchor version to 0.18.2
* update CI script
* cargo.lock
* Added test cases to more throroughly stress test SendTake
* Remove unnecessary variable in test
* Revert PR changes related to build
* Skip permissioned markets test
* Fix indentation
* cargo fmt the state.rs file
* Add overflow checks
* variable rename
* open orders accounting seems correct
* Added print statements to understand the SendTake test case
* get rid of overflow checks and calculate fees in matching
Co-authored-by: jarry-xiao <jarry.xiao@gmail.com>
This instruction currently returns Ok even if an order cancellation
fails. In most cases this is the desired behavior, since the most common
error is that the order no longer exists. However, for other errors, we
should return the error instead of Ok since the cancellation removes the
order from the order book, and that partial state update is no longer
valid.
* Add CancelOrdersByClientIds instruction to allow users to cancel orders in bulk
* Added max_ts to NewOrderV3 to prevent orders from being placed on the orderbook if the current unix timestamp exceeds max_ts
* Less fees as voted plz
* Fix build and tests
* Actually read the test and concoct better naming
* Put back the maker_rebate
* oops
Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>