Commit Graph

193 Commits

Author SHA1 Message Date
galactus 244f0d27bd
Merge branch 'project-serum:master' into master 2022-11-12 17:31:55 +00:00
kirill lykov 92992b3088
fix compilation error by adding missing crate feature (#258) 2022-10-25 19:35:28 -04:00
kootsZhin d678cead95
feat: add `send_take` to `instruction.rs` to facilitate CPI (#257) 2022-10-23 15:05:22 -04:00
emil 4713d2f338
process_send_take function implemented (#251)
* 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>
2022-10-23 14:22:28 -04:00
Yuhan Fang 737c4ba141
CancelOrdersByClientIds: error on dex failure (#253)
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.
2022-08-19 15:17:09 -04:00
Maximilian Schneider 8bd581dc85
Merge pull request #3 from project-serum/master
merge upstream to allow for editing spot orders
2022-07-20 15:17:06 +02:00
Tyera Eulberg 0c23a51340
Bump slog-stdlog (#236) 2022-05-04 18:07:28 -04:00
jhlx 4d921bbbe9 Remove use of array_map to allow dex to be verifiably built by anchor docker image's version of rust 2022-04-24 14:34:05 -04:00
jhlx 85b4f14990 v0.5.6 2022-04-21 01:53:15 -04:00
jhl bf78142fe6
Add order replacement instructions (#235) 2022-04-21 01:15:10 -04:00
dafyddd 7f55a5ef5f
Merge pull request #2 from blockworks-foundation/joe/merge-upstream-1
Joe/merge upstream 1
2022-04-15 14:53:27 -04:00
Joseph Dunn 6fe8d4bcb4 Merge remote-tracking branch 'upstream/master' 2022-04-14 09:56:15 -05:00
y2kappa e00bb9e6da
add usdh usdc pool (#228) 2022-04-12 21:58:49 -04:00
jhl 4bddbbc364
Add max_ts to NewOrderV3 and bulk cancellation instruction (#230)
* 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
2022-04-04 16:43:08 -04:00
kirill lykov 9a6f6abcb0
Update clap to v3.1.6 (#224) 2022-03-21 09:36:13 -04:00
Armani Ferrante 5b43fe1455
v0.5.5 2022-02-14 10:47:08 -05:00
Pierre 4d0a8dcdbf
fix: stable market tiers (#217) 2022-02-14 10:33:44 -05:00
wootmatt 4258756cf7
Change consume_events_once visibility to pub (#215) 2022-02-01 10:22:01 -05:00
jhlx 29ba51d005 v0.5.4 2022-01-23 10:04:11 +08:00
jhl 42c8ee1477
Add more stable markets (#212) 2022-01-23 10:02:41 +08:00
Armani Ferrante eb50404ebc
v0.5.3 (#210) 2022-01-10 12:18:53 -05:00
Armani Ferrante be86566da3
Stable fees (#209) 2022-01-10 12:14:36 -05:00
Armani Ferrante b96737fcda
v0.5.2 2021-12-17 12:01:24 -05:00
Armani Ferrante efe5766dae
Embed program at genesis for tests (#206) 2021-12-16 17:54:58 -05:00
Armani Ferrante 48603ff85a
travis: Update solana cli (#205) 2021-12-16 15:58:53 -05:00
Armani Ferrante be1e924c72
Check close authority on market init 2021-12-16 12:51:08 -05:00
jhlx 537a8c576f v0.5.1 2021-12-07 21:36:41 -05:00
Pierre db9247f85e
Lower fees as voted plz (#204)
* 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>
2021-12-08 02:32:19 +00:00
Armani Ferrante bcedad83ec
v0.5.0 (#202) 2021-12-06 18:05:45 -05:00
Armani Ferrante f1a6be3c4c
Permissioned crank integration test (#203) 2021-12-06 17:22:04 -05:00
Armani Ferrante 57b9281374
Run permissioned tests against local crate (#201) 2021-12-06 13:49:05 -05:00
Armani Ferrante 6b1f166e9b
Fix fuzz tests (#198) 2021-12-01 10:36:14 -08:00
Armani Ferrante 7669ad8389
Permissioned crank middleware (#197) 2021-12-01 10:17:21 -08:00
Justin Starry 89a7f879bf
Update instruction account input comments (#194) 2021-11-28 08:05:17 -08:00
Armani Ferrante 31cbbc88b4
Optimize compute units with compiler flags (#159) 2021-11-27 07:06:28 -08:00
Armani Ferrante 8d6c746baa
Merge in disabled market updates (#190) 2021-10-31 11:41:02 -07:00
Blockchain Man 99c3510d27
Swap Academy for Discord (#188) 2021-10-31 10:17:36 -07:00
Hipo 5700b04b37
Update testnet and devnet api endpoint. Original config is obsolete. (#185) 2021-10-31 10:17:18 -07:00
Kirill Fomichev a3648a2b95
dex: Make referral account readonly in new_order (#179) 2021-10-31 06:03:18 -07:00
xjcaa e744bfb9aa
Fix consume_events_permissioned instruction (#180) 2021-10-31 05:59:23 -07:00
Zorro 625fd853ed
dex: Fix permissioned crank (#178) 2021-10-31 05:36:45 -07:00
Armani Ferrante 298bcd409c
dex: Move in permissioned markets (#189) 2021-10-31 05:31:06 -07:00
Sebastian Conybeare 0c730d678f
Add support for markets with permissioned cranks (#170)
* Add optional crank authority to markets

* Introduce separate ConsumeEventsPermissioned instruction
2021-09-13 09:34:00 +08:00
dd 3104f424ee made Queue fields pub 2021-08-26 23:13:57 -04:00
Armani Ferrante d82f6cd7a0
dex: Fix check flags in crank (#172) 2021-08-25 08:39:35 -07:00
dd 5921e56ef5 added devnet to default features 2021-08-19 14:09:36 -04:00
dd 0fd59e1b2d made some functions accessible on critbit 2021-08-19 13:49:19 -04:00
dd f82b027bde added back in devnet compile flag 2021-08-19 12:40:25 -04:00
aac e7214bbc45
dex: Mutable open orders for prune instruction (#167) 2021-08-12 08:20:17 -07:00
armaniferrante b977df6c9c
dex: Add Anchor.toml for registry publishing 2021-08-09 01:50:17 -07:00